Skip to content

Commit c67b251

Browse files
committed
net: nexthop: Initialize NH group ID in resilient NH group notifiers
JIRA: https://issues.redhat.com/browse/RHEL-59118 commit 2d32c49 Author: Petr Machata <petrm@nvidia.com> Date: Fri Mar 8 13:59:45 2024 +0100 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> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
1 parent 885531e commit c67b251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/nexthop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ static int call_nexthop_res_table_notifiers(struct net *net, struct nexthop *nh,
407407
struct nh_notifier_info info = {
408408
.net = net,
409409
.extack = extack,
410+
.id = nh->id,
410411
};
411412
struct nh_group *nhg;
412413
int err;

0 commit comments

Comments
 (0)