ipvs: provide iph to schedulers
authorJulian Anastasov <ja@ssi.bg>
Sun, 16 Jun 2013 06:09:36 +0000 (09:09 +0300)
committerSimon Horman <horms@verge.net.au>
Wed, 26 Jun 2013 09:01:45 +0000 (18:01 +0900)
commitbba54de5bdd107d3841b560f1a9cb0ed06e79533
treec72ff8ab19b1d9e7007a7ea9a8f877d8bb2b095a
parent681f130f39e10087475383e6771b9366e26bab0c
ipvs: provide iph to schedulers

Before now the schedulers needed access only to IP
addresses and it was easy to get them from skb by
using ip_vs_fill_iph_addr_only.

New changes for the SH scheduler will need the protocol
and ports which is difficult to get from skb for the
IPv6 case. As we have all the data in the iph structure,
to avoid the same slow lookups provide the iph to schedulers.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
12 files changed:
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_dh.c
net/netfilter/ipvs/ip_vs_lblc.c
net/netfilter/ipvs/ip_vs_lblcr.c
net/netfilter/ipvs/ip_vs_lc.c
net/netfilter/ipvs/ip_vs_nq.c
net/netfilter/ipvs/ip_vs_rr.c
net/netfilter/ipvs/ip_vs_sed.c
net/netfilter/ipvs/ip_vs_sh.c
net/netfilter/ipvs/ip_vs_wlc.c
net/netfilter/ipvs/ip_vs_wrr.c