From: Jay Vosburgh <fubar@us.ibm.com>
To: Jiri Pirko <jpirko@redhat.com>
Cc: linux-scsi@vger.kernel.org, devel@open-fcoe.org,
robert.w.love@intel.com, James.Bottomley@HansenPartnership.com,
netdev@vger.kernel.org
Subject: Re: [PATCH] fcoe: correct checking for bonding
Date: Mon, 28 Feb 2011 09:15:21 -0800 [thread overview]
Message-ID: <8433.1298913321@death> (raw)
In-Reply-To: <20110228133245.GB7096@psychotron.brq.redhat.com>
Jiri Pirko <jpirko@redhat.com> wrote:
>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;
> }
Based on past discussions, I believe the intent of the code is
to permit FCOE over bonding only for active-backup mode, and possibly
for -xor/-rr as well.
I'm not sure if the slave or the master is what's being tested
here, so I'm not sure what the right thing to do is. I suspect it's the
master, as I recall discussion of one configuration involving
active-backup mode balancing FCOE traffic over both the active and
inactive slaves. FCOE uses the "orig_dev" logic in __netif_receive_skb
to have the packets delivered even on the nominally inactive slave.
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
next prev parent reply other threads:[~2011-02-28 17:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 13:32 [PATCH] fcoe: correct checking for bonding Jiri Pirko
2011-02-28 17:15 ` Jay Vosburgh [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8433.1298913321@death \
--to=fubar@us.ibm.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=devel@open-fcoe.org \
--cc=jpirko@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robert.w.love@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.