mlxsw: Reflect nexthop status changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | mlxsw: spectrum_router: Nullify nexthop's neigh pointerdrivers/ | +3 | 0 replies | |
| 2/15 | mlxsw: spectrum_router: Store nexthop groups in a hash tabledrivers/ drivers/ | +54 | 0 replies | |
| 3/15 | mlxsw: spectrum_router: Store nexthops in a hash tabledrivers/ drivers/ | +55 | 0 replies | |
| 4/15 | mlxsw: spectrum_router: Use nexthop's scope to set action typedrivers/ | +1 | 0 replies | |
| 5/15 | mlxsw: spectrum_router: Add gateway indication to nexthop groupdrivers/ | +8 | 0 replies | |
| 6/15 | mlxsw: spectrum_router: Store routes in a more generic waydrivers/ | +27 | 0 replies | |
| 7/15 | mlxsw: spectrum_router: Remove FIB info from FIB entry structdrivers/ | +1 | 0 replies | |
| 8/15 | mlxsw: spectrum_router: Refactor nexthop init routinedrivers/ | +49 | 0 replies | |
| 9/15 | mlxsw: spectrum_router: More accurately set offload flagdrivers/ | +80 | 0 replies | |
| 10/15 | mlxsw: spectrum_router: Determine offload status using generic functiondrivers/ | +1 | 0 replies | |
| 11/15 | mlxsw: spectrum_router: Use trap action only for some route typesdrivers/ | +13 | 0 replies | |
| 12/15 | ipv4: fib: Notify about nexthop status changesinclude/ net/ | +40 | 5 replies | |
| 13/15 | mlxsw: spectrum_router: Reflect nexthop status changesdrivers/ | +57 | 0 replies | |
| 14/15 | mlxsw: spectrum_router: Don't reflect LINKDOWN nexthopsdrivers/ | +7 | 0 replies | |
| 14/15 | mlxsw: spectrum_router: Don't reflect LINKDOWN nexthopsdrivers/ | +7 | 0 replies | |
| 15/15 | mlxsw: spectrum_router: Flush resources when RIF is deleteddrivers/ drivers/ drivers/ | +93 | 0 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.
| Patch | Andy Gospodarek | Jiri Pirko |
|---|---|---|
| Series | A-b | |
| 1/15 | ||
| 2/15 | ||
| 3/15 | ||
| 4/15 | ||
| 5/15 | ||
| 6/15 | ||
| 7/15 | ||
| 8/15 | ||
| 9/15 | ||
| 10/15 | ||
| 11/15 | ||
| 12/15 | R-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.
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