net: nexthop: Initialize NH group ID in resilient NH group notifiers
authorPetr Machata <petrm@nvidia.com>
Fri, 8 Mar 2024 12:59:45 +0000 (13:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 21:14:06 +0000 (14:14 -0700)
commit2d32c49386cbb748ef775aab60aa687d4a320d3b
tree1246ee3ccefdb42e4e37665edd6f34ba53f65886
parente5b7aefe38f7f6258935d8a10c36552dd957048a
net: nexthop: Initialize NH group ID in resilient NH group notifiers

The NEXTHOP_EVENT_RES_TABLE_PRE_REPLACE notifier currently keeps the group
ID unset. That makes it impossible to look up the group for which the
notifier is intended. This is not an issue at the moment, because the only
client is netdevsim, and that just so that it veto replacements, which is a
static property not tied to a particular group. But for any practical use,
the ID is necessary. Set it.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/025fef095dcfb408042568bb5439da014d47239e.1709901020.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c