]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipvs: Fix reuse connection if RS weight is 0
authoryangxingwu <xingwu.yang@gmail.com>
Thu, 4 Nov 2021 02:10:29 +0000 (03:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:45 +0000 (09:04 +0100)
commitda42c75ce6dfc4783e7c5efbe020bfc7d1c80093
tree71989ec232295162852b172930c68b5b5cd0e323
parent78ef39fd53d0fbbcd67239fa92e1525cf82a03f1
netfilter: ipvs: Fix reuse connection if RS weight is 0

[ Upstream commit 63dc8f595109afae2133a41266337bc8550bdb93 ]

We are changing expire_nodest_conn to work even for reused connections when
conn_reuse_mode=0, just as what was done with commit d5b5f4d85a66 ("ipvs:
Fix reuse connection if real server is dead").

For controlled and persistent connections, the new connection will get the
needed real server depending on the rules in ip_vs_check_template().

Fixes: 9fa6e56cb572 ("ipvs: allow rescheduling of new connections when port reuse is detected")
Co-developed-by: Chuanqi Liu <legend050709@qq.com>
Signed-off-by: Chuanqi Liu <legend050709@qq.com>
Signed-off-by: yangxingwu <xingwu.yang@gmail.com>
Acked-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/networking/ipvs-sysctl.rst
net/netfilter/ipvs/ip_vs_core.c