netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fcoe: correct checking for bonding
@ 2011-03-02  6:05 Jiri Pirko
  2011-03-02  9:55 ` Jiri Pirko
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Pirko @ 2011-03-02  6:05 UTC (permalink / raw)
  To: linux-scsi; +Cc: devel, robert.w.love, netdev, fubar, joe.eykholt

Check for bonding master and refuse to use that.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
---
 drivers/scsi/fcoe/fcoe.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 9f9600b..3becc6a 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -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;
 	}
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-14 21:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02  6:05 fcoe: correct checking for bonding Jiri Pirko
2011-03-02  9:55 ` Jiri Pirko
2011-03-03  1:09   ` Robert Love
2011-03-12 12:01     ` Jiri Pirko
2011-03-12 18:59       ` David Miller
2011-03-14 19:04         ` Robert Love
2011-03-14 19:22           ` Jiri Pirko
2011-03-14 20:20             ` David Miller
2011-03-14 20:53               ` James Bottomley
2011-03-14 21:04                 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).