Skip to content

Add support for route offload failure notifications

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesApplied 10/10

Patches in v1 All 10 applied

#Subject and filesSizeRepliesApplied
1/10rtnetlink: Add RTM_F_OFFLOAD_FAILED flaginclude/uapi/linux/rtnetlink.h+5 -00 repliesApplied
2/10IPv4: Add "offload failed" indication to routesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/netdevsim/fib.c include/net/ip_fib.h +4 more+17 -30 repliesApplied
3/10IPv4: Extend 'fib_notify_on_flag_change' sysctlDocumentation/networking/ip-sysctl.rst net/ipv4/fib_trie.c net/ipv4/sysctl_net_ipv4.c+9 -20 repliesApplied
4/10IPv6: Add "offload failed" indication to routesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/netdevsim/fib.c include/net/ip6_fib.h +1 more+12 -70 repliesApplied
5/10IPv6: Extend 'fib_notify_on_flag_change' sysctlDocumentation/networking/ip-sysctl.rst net/ipv6/route.c net/ipv6/sysctl_net_ipv6.c+9 -20 repliesApplied
6/10netdevsim: fib: Do not warn if route was not found for several eventsdrivers/net/netdevsim/fib.c+3 -30 repliesApplied
7/10netdevsim: dev: Initialize FIB module after debugfsdrivers/net/netdevsim/dev.c+21 -190 repliesApplied
8/10netdevsim: fib: Add debugfs to debug route offload failuredrivers/net/netdevsim/fib.c+112 -20 repliesApplied
9/10mlxsw: spectrum_router: Set offload_failed flagdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+52 -00 repliesApplied
10/10selftests: netdevsim: Test route offload failure notificationstools/testing/selftests/drivers/net/netdevsim/fib_notifications.sh+132 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/10] Add support for route offload failure notifications

From: Ido Schimmel <[email protected]>

This is a complementary series to the one merged in commit 389cb1ecc86e ("Merge branch 'add-notifications-when-route-hardware-flags-change'").

The previous series added RTM_NEWROUTE notifications to user space whenever a route was successfully installed in hardware or when its state in hardware changed. This allows routing daemons to delay advertisement of routes until they are installed in hardware.

However, if route installation failed, a routing daemon will wait indefinitely for a notification that will never come. The aim of this series is to provide a failure notification via a new flag (RTM_F_OFFLOAD_FAILED) in the RTM_NEWROUTE message. Upon such a notification a routing daemon may decide to withdraw the route from the FIB.

Series overview:

Patch #1 adds the new RTM_F_OFFLOAD_FAILED flag

Patches #2-#3 and #4-#5 add failure notifications to IPv4 and IPv6, respectively

Patches #6-#8 teach netdevsim to fail route installation via a new knob in debugfs

Patch #9 extends mlxsw to mark routes with the new flag

Patch #10 adds test cases for the new notification over netdevsim

Amit Cohen (9):
rtnetlink: Add RTM_F_OFFLOAD_FAILED flag
IPv4: Add "offload failed" indication to routes
IPv4: Extend 'fib_notify_on_flag_change' sysctl
IPv6: Add "offload failed" indication to routes
IPv6: Extend 'fib_notify_on_flag_change' sysctl
netdevsim: fib: Do not warn if route was not found for several events
netdevsim: fib: Add debugfs to debug route offload failure
mlxsw: spectrum_router: Set offload_failed flag
selftests: netdevsim: Test route offload failure notifications

Ido Schimmel (1):
netdevsim: dev: Initialize FIB module after debugfs

 Documentation/networking/ip-sysctl.rst        |   6 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c |  58 +++++++-
 drivers/net/netdevsim/dev.c                   |  40 +++---
 drivers/net/netdevsim/fib.c                   | 123 +++++++++++++++-
 include/net/ip6_fib.h                         |   5 +-
 include/net/ip_fib.h                          |   3 +-
 include/uapi/linux/rtnetlink.h                |   5 +
 net/ipv4/fib_lookup.h                         |   3 +-
 net/ipv4/fib_semantics.c                      |   3 +
 net/ipv4/fib_trie.c                           |  13 +-
 net/ipv4/route.c                              |   1 +
 net/ipv4/sysctl_net_ipv4.c                    |   2 +-
 net/ipv6/route.c                              |  14 +-
 net/ipv6/sysctl_net_ipv6.c                    |   2 +-
 .../net/netdevsim/fib_notifications.sh        | 134 +++++++++++++++++-
 15 files changed, 372 insertions(+), 40 deletions(-)
Signature · 1 line
2.29.2