netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fcoe: correct checking for bonding
@ 2011-02-28 13:32 Jiri Pirko
  2011-02-28 17:15 ` Jay Vosburgh
  0 siblings, 1 reply; 9+ messages in thread
From: Jiri Pirko @ 2011-02-28 13:32 UTC (permalink / raw)
  To: linux-scsi; +Cc: devel, robert.w.love, James.Bottomley, netdev

Check for IFF_BONDING as this flag is set-up for all bonding devices.

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..67714a4 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) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
-- 
1.7.3.4


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

end of thread, other threads:[~2011-03-01 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 13:32 [PATCH] fcoe: correct checking for bonding Jiri Pirko
2011-02-28 17:15 ` Jay Vosburgh
2011-02-28 17:54   ` [Open-FCoE] " Joe Eykholt
2011-03-01  6:37     ` Jiri Pirko
2011-03-01 17:49       ` Joe Eykholt
2011-03-01 18:01         ` Vasu Dev
2011-03-01 18:09           ` Vasu Dev
2011-03-01 18:06         ` Jay Vosburgh
2011-03-01 20:12           ` Jiri Pirko

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).