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>
This commit is contained in:
@@ -1362,6 +1362,8 @@ static void ipoib_add_one(struct ib_device *device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (p = s; p <= e; ++p) {
|
for (p = s; p <= e; ++p) {
|
||||||
|
if (rdma_port_get_link_layer(device, p) != IB_LINK_LAYER_INFINIBAND)
|
||||||
|
continue;
|
||||||
dev = ipoib_add_port("ib%d", device, p);
|
dev = ipoib_add_port("ib%d", device, p);
|
||||||
if (!IS_ERR(dev)) {
|
if (!IS_ERR(dev)) {
|
||||||
priv = netdev_priv(dev);
|
priv = netdev_priv(dev);
|
||||||
|
Reference in New Issue
Block a user