aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/rocker/rocker_main.c4
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,
2214 NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported"); 2214 NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported");
2215 return notifier_from_errno(-EINVAL); 2215 return notifier_from_errno(-EINVAL);
2216 } 2216 }
2217 if (fen_info->fi->nh) {
2218 NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported");
2219 return notifier_from_errno(-EINVAL);
2220 }
2217 } 2221 }
2218 2222
2219 memcpy(&fib_work->fen_info, ptr, sizeof(fib_work->fen_info)); 2223 memcpy(&fib_work->fen_info, ptr, sizeof(fib_work->fen_info));