Skip to content

Commit

Permalink
netdevsim: Allow programming routes with nexthop objects
Browse files Browse the repository at this point in the history
Previous patches added the ability to program nexthop objects.
Therefore, no longer forbid the programming of routes that point to such
objects.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Ido Schimmel authored and Jakub Kicinski committed Nov 6, 2020
1 parent 8fa8474 commit 66e58bf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/net/netdevsim/fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,6 @@ static int nsim_fib4_event(struct nsim_fib_data *data,

fen_info = container_of(info, struct fib_entry_notifier_info, info);

if (fen_info->fi->nh) {
NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported");
return 0;
}

switch (event) {
case FIB_EVENT_ENTRY_REPLACE:
err = nsim_fib4_rt_insert(data, fen_info);
Expand Down Expand Up @@ -727,11 +722,6 @@ static int nsim_fib6_event(struct nsim_fib_data *data,

fen6_info = container_of(info, struct fib6_entry_notifier_info, info);

if (fen6_info->rt->nh) {
NL_SET_ERR_MSG_MOD(info->extack, "IPv6 route with nexthop objects is not supported");
return 0;
}

if (fen6_info->rt->fib6_src.plen) {
NL_SET_ERR_MSG_MOD(info->extack, "IPv6 source-specific route is not supported");
return 0;
Expand Down

0 comments on commit 66e58bf

Please sign in to comment.