|
@@ -176,7 +176,7 @@ ip_vs_set_state(struct ip_vs_conn *cp, int direction,
|
|
|
return pp->state_transition(cp, direction, skb, pp);
|
|
|
}
|
|
|
|
|
|
-static inline int
|
|
|
+static inline void
|
|
|
ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc,
|
|
|
struct sk_buff *skb, int protocol,
|
|
|
const union nf_inet_addr *caddr, __be16 cport,
|
|
@@ -186,8 +186,7 @@ ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc,
|
|
|
ip_vs_conn_fill_param(svc->af, protocol, caddr, cport, vaddr, vport, p);
|
|
|
p->pe = svc->pe;
|
|
|
if (p->pe && p->pe->fill_param)
|
|
|
- return p->pe->fill_param(p, skb);
|
|
|
- return 0;
|
|
|
+ p->pe->fill_param(p, skb);
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -268,9 +267,8 @@ ip_vs_sched_persist(struct ip_vs_service *svc,
|
|
|
vaddr = &fwmark;
|
|
|
}
|
|
|
}
|
|
|
- if (ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0,
|
|
|
- vaddr, vport, ¶m))
|
|
|
- return NULL;
|
|
|
+ ip_vs_conn_fill_param_persist(svc, skb, protocol, &snet, 0,
|
|
|
+ vaddr, vport, ¶m);
|
|
|
}
|
|
|
|
|
|
/* Check if a template already exists */
|