Skip to content

New sysctl to turn off nexthop API compat mode

Roopa Prabhu netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 7 repliesSuperseded

Changes in v4 from the cover letter

- Use davids note for Documenting the sysctl
- test with latest iproute2 and adjust 'pref'

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: ipv6: new arg skip_notify to ip6_rt_delinclude/net/ip6_route.h include/net/ipv6_stubs.h net/ipv4/nexthop.c +5 more+21 -170 replies
2/3net: ipv4: add sysctl for nexthop api compatibility modeDocumentation/networking/ip-sysctl.txt include/net/netns/ipv4.h net/ipv4/af_inet.c +4 more+32 -32 replies
3/3selftests: net: add new testcases for nexthop API compat mode sysctltools/testing/selftests/net/fib_nexthops.sh+196 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH net-next v4 0/3] New sysctl to turn off nexthop API compat mode

From: Roopa Prabhu <[email protected]>

Currently route nexthop API maintains user space compatibility with old route API by default. Dumps and netlink notifications support both new and old API format. In systems which have moved to the new API, this compatibility mode cancels some of the performance benefits provided by the new nexthop API.

This patch adds new sysctl nexthop_compat_mode which is on by default but provides the ability to turn off compatibility mode allowing systems to run entirely with the new routing API if they wish to. Old route API behaviour and support is not modified by this sysctl

v4:
- Use davids note for Documenting the sysctl
- test with latest iproute2 and adjust 'pref'

v3:
- Document new sysctl
- move sysctl to use proc_dointvec_minmax with 0 and 1 values
- selftest: remove pref medium in ipv6 test

v2:
- Incorporate David Aherns pointers on covering dumps and nexthop deletes. Also use one ipv4 sysctl to cover both ipv4 and ipv6 (I see it is done that way for many others)
- Added a selftest to cover dump and notfications for nexthop api compat mode

Roopa Prabhu (3):
net: ipv6: new arg skip_notify to ip6_rt_del
net: ipv4: add sysctl for nexthop api compatibility mode
selftests: net: add new testcases for nexthop API compat mode sysctl

 Documentation/networking/ip-sysctl.txt      |  14 ++
 include/net/ip6_route.h                     |   2 +-
 include/net/ipv6_stubs.h                    |   2 +-
 include/net/netns/ipv4.h                    |   2 +
 net/ipv4/af_inet.c                          |   1 +
 net/ipv4/fib_semantics.c                    |   3 +
 net/ipv4/nexthop.c                          |   5 +-
 net/ipv4/sysctl_net_ipv4.c                  |   9 ++
 net/ipv6/addrconf.c                         |  12 +-
 net/ipv6/addrconf_core.c                    |   3 +-
 net/ipv6/anycast.c                          |   4 +-
 net/ipv6/ndisc.c                            |   2 +-
 net/ipv6/route.c                            |  14 +-
 tools/testing/selftests/net/fib_nexthops.sh | 198 +++++++++++++++++++++++++++-
 14 files changed, 250 insertions(+), 21 deletions(-)
Signature · 1 line
2.1.4