Commit dbcc4fa7 authored by David Ahern's avatar David Ahern Committed by David S. Miller

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a87afc0
...@@ -2214,6 +2214,10 @@ static int rocker_router_fib_event(struct notifier_block *nb, ...@@ -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"); NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported");
return notifier_from_errno(-EINVAL); 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)); memcpy(&fib_work->fen_info, ptr, sizeof(fib_work->fen_info));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment