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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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));