Skip to content

Commit 9ce701c

Browse files
idoschgregkh
authored andcommitted
nexthop: Pass extack to nexthop notifier
[ Upstream commit 3578d53 ] The next patch will add extack to the notification info. This allows listeners to veto notifications and communicate the reason to user space. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of: 390b3a3 ("nexthop: Forbid FDB status change while nexthop is in a group") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9e7b3c5 commit 9ce701c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

net/ipv4/nexthop.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ static const struct nla_policy rtm_nh_policy[NHA_MAX + 1] = {
3838

3939
static int call_nexthop_notifiers(struct net *net,
4040
enum nexthop_event_type event_type,
41-
struct nexthop *nh)
41+
struct nexthop *nh,
42+
struct netlink_ext_ack *extack)
4243
{
4344
int err;
4445

@@ -908,7 +909,7 @@ static void __remove_nexthop(struct net *net, struct nexthop *nh,
908909
static void remove_nexthop(struct net *net, struct nexthop *nh,
909910
struct nl_info *nlinfo)
910911
{
911-
call_nexthop_notifiers(net, NEXTHOP_EVENT_DEL, nh);
912+
call_nexthop_notifiers(net, NEXTHOP_EVENT_DEL, nh, NULL);
912913

913914
/* remove from the tree */
914915
rb_erase(&nh->rb_node, &net->nexthop.rb_root);

0 commit comments

Comments
 (0)