]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6eda12032e883cc77ef05046053b52d35653d3f
treebe6c0ffa947bc68d8dadf69371111e34f903ff49
parente91205b7677ddc5346ca71974385bb4daa97c533
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