fcoe: correct checking for bonding
authorJiri Pirko <jpirko@redhat.com>
Tue, 1 Mar 2011 20:05:35 +0000 (20:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 23:51:46 +0000 (16:51 -0700)
Check for bonding master and refuse to use that.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Robert Love <robert.w.love@intel.com>
Acked-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/fcoe/fcoe.c

index 9f9600b6700161231cf815ad030d3a98f0acaae5..3becc6a20a4f17c191a0cf8b9b7f0a8f4a973c12 100644 (file)
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
        }
 
        /* Do not support for bonding device */
-       if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-           (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-           (netdev->priv_flags & IFF_MASTER_8023AD)) {
+       if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
                FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
                return -EOPNOTSUPP;
        }