Commit cc8bdf06 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

fcoe: correct checking for bonding

Check for bonding master and refuse to use that.
Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Acked-by: default avatarRobert Love <robert.w.love@intel.com>
Acked-by: default avatarJames Bottomley <James.Bottomley@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ce8c07d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment