Skip to content

ipv4: Flush the FIB once on multiple nexthop removal

Cosmin Ratiu netdev 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesApplied 3/3
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 1 replySuperseded

V1 -> V2 from the cover letter

- Fixes xmas tree in a couple places (Kuniyuki Iwashima)
- Added __must_check to remove_nexthop_from_groups() (Kuniyuki Iwashima)

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ipv4: Provide a FIB flushing signal from nexthop removal functionsnet/ipv4/nexthop.c+30 -201 replyApplied
2/3ipv4: Flush the FIB once on multiple nexthop removalnet/ipv4/nexthop.c+19 -71 replyApplied
3/3ipv4: Add __must_check to nexthop removal functionsnet/ipv4/nexthop.c+14 -121 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIdo SchimmelDavid Ahern
SeriesR-b
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 v3 thread

Cover letter [PATCH net-next v3 0/3] ipv4: Flush the FIB once on multiple nexthop removal

This series optimizes multiple nexthop removal performance from having to do a FIB flush for each nexthop being removed to only doing a single FIB flush after all nexthops are removed.

This dramatically improves performance in scenarios where there are many nexthops and many ipv4 routes. Please see individual patches for more details and for a test scenario.

V2 -> V3: https://lore.kernel.org/netdev/[email protected]/T/#t
- Split the patch into 3 (Ido Schimmel, David Ahern)
- Used WARN_ON_ONCE instead of WARN_ON (Ido Schimmel)

V1 -> V2:
- Fixes xmas tree in a couple places (Kuniyuki Iwashima)
- Added __must_check to remove_nexthop_from_groups() (Kuniyuki Iwashima)

Cosmin Ratiu (3):
ipv4: Provide a FIB flushing signal from nexthop removal functions
ipv4: Flush the FIB once on multiple nexthop removal
ipv4: Add __must_check to nexthop removal functions

 net/ipv4/nexthop.c | 88 +++++++++++++++++++++++++++++-----------------
 1 file changed, 56 insertions(+), 32 deletions(-)
Signature · 1 line
2.53.0