]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: Cache ipvs in ip_vs_in_icmp and ip_vs_in_icmp_v6
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 21 Sep 2015 18:02:00 +0000 (13:02 -0500)
committerSimon Horman <horms@verge.net.au>
Thu, 24 Sep 2015 00:34:35 +0000 (09:34 +0900)
commite35db5e57fafe1e7ecc7218f6c9ad6511a23fbd4
tree50214a82ab27b279fd06a0548ea1109df0a91ca5
parent59aa12c5911ce8ef10e1dc1ce1d6a32e6449e523
ipvs: Cache ipvs in ip_vs_in_icmp and ip_vs_in_icmp_v6

Storte the value of net_ipvs in a variable named ipvs so that when
there are more users struct netns_ipvs in ip_vs_in_cmp and
ip_vs_in_icmp_v6 they won't need to compute the value again.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_core.c