mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
ipvs: avoid lookup for fwmark 0
Restore the previous behaviour to lookup for fwmark service only when fwmark is non-null. This saves only CPU. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Hans Schillstrom <hans@schillstrom.com> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
fe8f661f2c
commit
097fc76a08
1 changed files with 5 additions and 3 deletions
|
@ -411,9 +411,11 @@ ip_vs_service_get(struct net *net, int af, __u32 fwmark, __u16 protocol,
|
|||
/*
|
||||
* Check the table hashed by fwmark first
|
||||
*/
|
||||
svc = __ip_vs_svc_fwm_find(net, af, fwmark);
|
||||
if (fwmark && svc)
|
||||
goto out;
|
||||
if (fwmark) {
|
||||
svc = __ip_vs_svc_fwm_find(net, af, fwmark);
|
||||
if (svc)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/*
|
||||
* Check the table hashed by <protocol,addr,port>
|
||||
|
|
Loading…
Reference in a new issue