]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2737ec304522e7806970763e3cddf989969e3cba
treec72ff8ab19b1d9e7007a7ea9a8f877d8bb2b095a
parentcf3fecf37cc582a89800abf6cb26036704bf8ddb
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