diff options
author | David Ahern <dsahern@gmail.com> | 2019-06-04 06:19:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-05 05:26:50 +0300 |
commit | dbcc4fa718eed0fd392eb098631f33af04014d63 (patch) | |
tree | 9b6ae985d3b160371d6aaf88ae23ef2c9e71656d /drivers/net/ethernet/rocker | |
parent | 6a87afc072c37880ae60fa3dfb74cc252038fac1 (diff) | |
download | linux-dbcc4fa718eed0fd392eb098631f33af04014d63.tar.xz |
rocker: Fail attempts to use routes with nexthop objects
Fail attempts to use nexthop objects with routes until support can be
properly added.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rocker/rocker_main.c b/drivers/net/ethernet/rocker/rocker_main.c index 7ae6c124bfe9..45b3325c3a38 100644 --- a/drivers/net/ethernet/rocker/rocker_main.c +++ b/drivers/net/ethernet/rocker/rocker_main.c @@ -2214,6 +2214,10 @@ static int rocker_router_fib_event(struct notifier_block *nb, NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported"); return notifier_from_errno(-EINVAL); } + if (fen_info->fi->nh) { + NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported"); + return notifier_from_errno(-EINVAL); + } } memcpy(&fib_work->fen_info, ptr, sizeof(fib_work->fen_info)); |