]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv4: Provide a FIB flushing signal from nexthop removal functions
authorCosmin Ratiu <cratiu@nvidia.com>
Thu, 7 May 2026 07:56:04 +0000 (10:56 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 May 2026 17:16:00 +0000 (10:16 -0700)
commit31c777be2a2efd8980a660724955ba795ef751de
treed1a5525f7e8b2b9f42b4b52cde469ac441ececef
parent7247c92cdcafeb0d6b7855ace95226f35e19bc9b
ipv4: Provide a FIB flushing signal from nexthop removal functions

Plumb a bool value throughout the various nexthop removal functions,
determined in the innermost __remove_nexthop_fib() (which still does the
FIB flushing) and propagated up all callers.

The next patch will make use of this signal to optimize the removal of
multiple nexthops by moving the FIB flushing up the call hierarchy.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20260507075606.322405-2-cratiu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c