Files
linux-stable-mirror/include/net
Ido Schimmel afd05e5028 nexthop: Emit a notification when a nexthop is added
[ Upstream commit 732d167bf5 ]

Emit a notification in the nexthop notification chain when a new nexthop
is added (not replaced). The nexthop can either be a new group or a
single nexthop.

The notification is sent after the nexthop is inserted into the
red-black tree, as listeners might need to callback into the nexthop
code with the nexthop ID in order to mark the nexthop as offloaded.

A 'REPLACE' notification is emitted instead of 'ADD' as the distinction
between the two is not important for in-kernel listeners. In case the
listener is not familiar with the encoded nexthop ID, it can simply
treat it as a new one. This is also consistent with the route offload
API.

Changes since RFC:
* Reword commit message

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 390b3a300d ("nexthop: Forbid FDB status change while nexthop is in a group")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-02 13:35:46 +02:00
..
2024-12-19 18:06:10 +01:00
2023-06-14 11:09:42 +02:00
2025-06-27 11:04:09 +01:00
2023-08-11 11:57:50 +02:00