diff options
author | Eli Cohen <eli@mellanox.co.il> | 2010-09-27 20:51:11 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-10-13 12:38:11 -0400 |
commit | 7b4c876961ad6ddcfacd69b25fe7e13ff41fe322 (patch) | |
tree | 2e3ec1e0f2a5d6bbabb90d1db60d06bcb8413489 /drivers/infiniband/ulp/ipoib | |
parent | a3f5adaf491490089215f863a61b9422fae902f8 (diff) |
IPoIB: Skip IBoE ports
IPoIB is IP-over-Infiniband link layer. In the case of IBoE, the link
layer is Ethernet and IP can work directly over Ethernet, so disable
IPoIB for non-IB_LINK_LAYER_INFINIBAND ports.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-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); |