Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 097fc76a authored by Julian Anastasov's avatar Julian Anastasov Committed by Simon Horman
Browse files

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: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarHans Schillstrom <hans@schillstrom.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent fe8f661f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -411,9 +411,11 @@ ip_vs_service_get(struct net *net, int af, __u32 fwmark, __u16 protocol,
	/*
	 *	Check the table hashed by fwmark first
	 */
	if (fwmark) {
		svc = __ip_vs_svc_fwm_find(net, af, fwmark);
	if (fwmark && svc)
		if (svc)
			goto out;
	}

	/*
	 *	Check the table hashed by <protocol,addr,port>