Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netdevsim: Allow programming routes with nexthop objects

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>

authored by

Ido Schimmel and committed by
Jakub Kicinski
66e58bf0 8fa84742

-10
-10
drivers/net/netdevsim/fib.c
··· 412 412 413 413 fen_info = container_of(info, struct fib_entry_notifier_info, info); 414 414 415 - if (fen_info->fi->nh) { 416 - NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported"); 417 - return 0; 418 - } 419 - 420 415 switch (event) { 421 416 case FIB_EVENT_ENTRY_REPLACE: 422 417 err = nsim_fib4_rt_insert(data, fen_info); ··· 721 726 int err = 0; 722 727 723 728 fen6_info = container_of(info, struct fib6_entry_notifier_info, info); 724 - 725 - if (fen6_info->rt->nh) { 726 - NL_SET_ERR_MSG_MOD(info->extack, "IPv6 route with nexthop objects is not supported"); 727 - return 0; 728 - } 729 729 730 730 if (fen6_info->rt->fib6_src.plen) { 731 731 NL_SET_ERR_MSG_MOD(info->extack, "IPv6 source-specific route is not supported");