Skip to content

mlxsw: Reflect nexthop status changes

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15mlxsw: spectrum_router: Nullify nexthop's neigh pointerdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+3 -20 replies
2/15mlxsw: spectrum_router: Store nexthop groups in a hash tabledrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+54 -520 replies
3/15mlxsw: spectrum_router: Store nexthops in a hash tabledrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+55 -40 replies
4/15mlxsw: spectrum_router: Use nexthop's scope to set action typedrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+1 -10 replies
5/15mlxsw: spectrum_router: Add gateway indication to nexthop groupdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+8 -10 replies
6/15mlxsw: spectrum_router: Store routes in a more generic waydrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+27 -130 replies
7/15mlxsw: spectrum_router: Remove FIB info from FIB entry structdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+1 -30 replies
8/15mlxsw: spectrum_router: Refactor nexthop init routinedrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+49 -310 replies
9/15mlxsw: spectrum_router: More accurately set offload flagdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+80 -200 replies
10/15mlxsw: spectrum_router: Determine offload status using generic functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+1 -10 replies
11/15mlxsw: spectrum_router: Use trap action only for some route typesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+13 -290 replies
12/15ipv4: fib: Notify about nexthop status changesinclude/net/ip_fib.h net/ipv4/fib_semantics.c+40 -05 replies
13/15mlxsw: spectrum_router: Reflect nexthop status changesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+57 -20 replies
14/15mlxsw: spectrum_router: Don't reflect LINKDOWN nexthopsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+7 -00 replies
14/15mlxsw: spectrum_router: Don't reflect LINKDOWN nexthopsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+7 -00 replies
15/15mlxsw: spectrum_router: Flush resources when RIF is deleteddrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+93 -30 replies

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy GospodarekJiri Pirko
SeriesA-b
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15
12/15R-b
13/15
14/15
14/15
15/15

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

Read the v1 thread

Cover letter [patch net-next 00/15] mlxsw: Reflect nexthop status changes

From: Jiri Pirko <[email protected]>

Ido says:

When the kernel forwards IPv4 packets via multipath routes it doesn't consider nexthops that are dead or linkdown. For example, if the nexthop netdev is administratively down or doesn't have a carrier.

Devices capable of offloading such multipath routes need to be made aware of changes in the reflected nexthops' status. Otherwise, the device might forward packets via non-functional nexthops, resulting in packet loss. This patchset aims to fix that.

The first 11 patches deal with the necessary restructuring in the mlxsw driver, so that it's able to correctly add and remove nexthops from the device's adjacency table.

The 12th patch adds the NH_{ADD,DEL} events to the FIB notification chain. These notifications are sent whenever the kernel decides to add or remove a nexthop from the forwarding plane.

Finally, the last three patches add support for these events in the mlxsw driver, which is currently the only driver capable of offloading multipath routes.

Ido Schimmel (15):
mlxsw: spectrum_router: Nullify nexthop's neigh pointer
mlxsw: spectrum_router: Store nexthop groups in a hash table
mlxsw: spectrum_router: Store nexthops in a hash table
mlxsw: spectrum_router: Use nexthop's scope to set action type
mlxsw: spectrum_router: Add gateway indication to nexthop group
mlxsw: spectrum_router: Store routes in a more generic way
mlxsw: spectrum_router: Remove FIB info from FIB entry struct
mlxsw: spectrum_router: Refactor nexthop init routine
mlxsw: spectrum_router: More accurately set offload flag
mlxsw: spectrum_router: Determine offload status using generic
function
mlxsw: spectrum_router: Use trap action only for some route types
ipv4: fib: Notify about nexthop status changes
mlxsw: spectrum_router: Reflect nexthop status changes
mlxsw: spectrum_router: Don't reflect LINKDOWN nexthops
mlxsw: spectrum_router: Flush resources when RIF is deleted

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |   6 +
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |   7 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 534 ++++++++++++++++-----
 include/net/ip_fib.h                               |   7 +
 net/ipv4/fib_semantics.c                           |  33 ++
 5 files changed, 457 insertions(+), 130 deletions(-)
Signature · 1 line
2.7.4