netfilter: ipvs: Keep latest weight of destination
authorInju Song <inju.song@navercorp.com>
Tue, 27 Mar 2018 14:14:40 +0000 (23:14 +0900)
committerSimon Horman <horms@verge.net.au>
Mon, 9 Apr 2018 07:10:55 +0000 (10:10 +0300)
commita2c09ac0fb6756d7085c359b6c020ef8b4205e0f
tree50de62dc7382363b4dce510f1d3fb31310a4170f
parent535101ec884533a288f7ea35ad93cf28c89cb764
netfilter: ipvs: Keep latest weight of destination

The hashing table in scheduler such as source hash or maglev hash
should ignore the changed weight to 0 and allow changing the weight
from/to non-0 values. So, struct ip_vs_dest needs to keep weight
with latest non-0 weight.

Signed-off-by: Inju Song <inju.song@navercorp.com>
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c