OSDN Git Service

net: evaluate net.ipvX.conf.all.disable_policy and disable_xfrm
authorVincent Bernat <vincent@bernat.ch>
Sat, 7 Nov 2020 19:35:15 +0000 (20:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 00:41:31 +0000 (16:41 -0800)
commit62679a8d3aa4ba15ff63574a43e5686078d7b804
treebe6c0ffa947bc68d8dadf69371111e34f903ff49
parent1af5318c00a8acc33a90537af49b3f23f72a2c4b
net: evaluate net.ipvX.conf.all.disable_policy and disable_xfrm

The disable_policy and disable_xfrm are a per-interface sysctl to
disable IPsec policy or encryption on an interface. However, while a
"all" variant is exposed, it was a noop since it was never evaluated.
We use the usual "or" logic for this kind of sysctls.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/route.c