Message ID | CAD=hENdtK8qvHEnowpUZ+sL-SoB7bu2nMEDrkFjgdbbhxBqaMg@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [1/1] RDMA/rxe: Disable ipv6 features when ipv6.disable set in cmdline | expand |
diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c index 0701bd1ffd1a..6ef092cb575e 100644 --- a/drivers/infiniband/sw/rxe/rxe_net.c +++ b/drivers/infiniband/sw/rxe/rxe_net.c @@ -72,6 +72,11 @@ static struct dst_entry *rxe_find_route6(struct net_device *ndev, struct dst_entry *ndst; struct flowi6 fl6 = { { 0 } }; + if (!ipv6_mod_enabled()) { + pr_info("IPv6 is disabled by ipv6.disable=1 in cmdline"); + return NULL; + } + memset(&fl6, 0, sizeof(fl6)); fl6.flowi6_oif = ndev->ifindex;