]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
IPoIB: Skip IBoE ports
authorEli Cohen <eli@mellanox.co.il>
Tue, 28 Sep 2010 00:51:11 +0000 (17:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 13 Oct 2010 16:38:11 +0000 (09:38 -0700)
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>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index b4b22576f12a0a0aba0c99f421fcdf7cd2699016..9141779fba3c777ae508b164b2282ef9275711e1 100644 (file)
@@ -1362,6 +1362,8 @@ static void ipoib_add_one(struct ib_device *device)
        }
 
        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);
                if (!IS_ERR(dev)) {
                        priv = netdev_priv(dev);