Skip to content

Commit cdd6cfc

Browse files
idoschkuba-moo
authored andcommitted
mlxsw: spectrum_router: Allow programming routes with nexthop objects
Now that the driver supports nexthop objects, the check is no longer necessary. Remove it. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent c25db3a commit cdd6cfc

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

-14
Original file line numberDiff line numberDiff line change
@@ -7068,20 +7068,6 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,
70687068
NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported");
70697069
return notifier_from_errno(-EINVAL);
70707070
}
7071-
if (fen_info->fi->nh) {
7072-
NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported");
7073-
return notifier_from_errno(-EINVAL);
7074-
}
7075-
} else if (info->family == AF_INET6) {
7076-
struct fib6_entry_notifier_info *fen6_info;
7077-
7078-
fen6_info = container_of(info,
7079-
struct fib6_entry_notifier_info,
7080-
info);
7081-
if (fen6_info->rt->nh) {
7082-
NL_SET_ERR_MSG_MOD(info->extack, "IPv6 route with nexthop objects is not supported");
7083-
return notifier_from_errno(-EINVAL);
7084-
}
70857071
}
70867072
break;
70877073
}

0 commit comments

Comments
 (0)