diff options
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index b4b22576f12a..9141779fba3c 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c | |||
@@ -1362,6 +1362,8 @@ static void ipoib_add_one(struct ib_device *device) | |||
1362 | } | 1362 | } |
1363 | 1363 | ||
1364 | for (p = s; p <= e; ++p) { | 1364 | for (p = s; p <= e; ++p) { |
1365 | if (rdma_port_get_link_layer(device, p) != IB_LINK_LAYER_INFINIBAND) | ||
1366 | continue; | ||
1365 | dev = ipoib_add_port("ib%d", device, p); | 1367 | dev = ipoib_add_port("ib%d", device, p); |
1366 | if (!IS_ERR(dev)) { | 1368 | if (!IS_ERR(dev)) { |
1367 | priv = netdev_priv(dev); | 1369 | priv = netdev_priv(dev); |