v1 -> v2:
- It was suggested by Daniel Borkmann to extend the neighbor table settings
rather than adding IPv4/IPv6 options for ARP/NDISC separately. I agree
this way is much more concise since there is now only one place where the
option is checked and defined.
- Moved documentation/code into the same patch
- Explained in more detail the test scenario and results
v2 -> v3:
- Renamed 'skip_perm' to 'nocarrier'. The way this parameter is used
matches this naming.
- Changed logic to still flush if 'nocarrier' is false.
James Prestwood (1):
net: neighbour: introduce EVICT_NOCARRIER table option
Documentation/networking/ip-sysctl.rst | 9 +++++++++
include/net/neighbour.h | 5 +++--
include/uapi/linux/neighbour.h | 1 +
net/core/neighbour.c | 12 ++++++++++--
net/ipv4/arp.c | 1 +
net/ipv6/ndisc.c | 1 +
6 files changed, 25 insertions(+), 4 deletions(-)
Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Hideaki YOSHIFUJI <redacted>
Cc: David Ahern <dsahern@kernel.org>
Cc: Roopa Prabhu <redacted>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: Ido Schimmel <idosch@nvidia.com>
Cc: Nikolay Aleksandrov <redacted>
Cc: Chinmay Agarwal <redacted>
Cc: Yajun Deng <redacted>
Cc: Tong Zhu <redacted>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Jouni Malinen <redacted>
--
2.31.1