From: Jay Vosburgh <fubar@us.ibm.com>
To: John Fastabend <john.r.fastabend@intel.com>
Cc: "Leech, Christopher" <christopher.leech@intel.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Andy Gospodarek <andy@greyhouse.net>,
Patrick McHardy <kaber@trash.net>,
"bonding-devel@lists.sourceforge.net"
<bonding-devel@lists.sourceforge.net>
Subject: Re: Receive issues with bonding and vlans
Date: Thu, 06 May 2010 10:42:30 -0700 [thread overview]
Message-ID: <23107.1273167750@death.nxdomain.ibm.com> (raw)
In-Reply-To: <4BE103BE.3040805@intel.com>
John Fastabend <john.r.fastabend@intel.com> wrote:
>Jay Vosburgh wrote:
>> John Fastabend <john.r.fastabend@intel.com> wrote:
[...]
>>> #3 bond0 --> ethx
>>> vlanx --> -|
>>>
>>> Here is the case where adding the IFF_SLAVE bit doesn't work as I
>>> hoped. We don't want to run skb_bond_should_drop here.
>>
>> Yes, this is tricky because the VLAN device will copy the
>> dev->flags from the device it's placed atop, so the VLAN will inherit
>> the ethx's IFF_SLAVE flag. This happens regardless of the setup order
>> (enslave ethX, then add VLAN, or vice versa).
>>
>
>This doesn't appear to be true, adding a VLAN on ethx then enslave ethx
>doesn't set the IFF_SLAVE flag on the VLAN. Unless I am missing
>something.
I tried this again, and yes, the vlan device inherits the flags
of the device at the time the vlan is added.
I think I was confused because the vlan device doesn't lose
IFF_SLAVE if the underlying ethX is taken out of the bond. I suspect
both of these behaviors are because netdev_set_master doesn't do a
notifier call (just an rtmsg_ifinfo) when it changes dev->flags outside
of dev_set_flags.
I don't think the vlan device should pick up IFF_SLAVE, though,
when the vlan device itself is not a slave, so that part seems correct.
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
prev parent reply other threads:[~2010-05-06 17:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 22:17 Receive issues with bonding and vlans Chris Leech
2010-04-12 22:17 ` [PATCH] vlan: remove receive checks for bonding Chris Leech
2010-04-12 23:19 ` Jay Vosburgh
2010-04-12 23:10 ` Receive issues with bonding and vlans Jay Vosburgh
2010-04-12 23:35 ` Chris Leech
2010-04-13 0:08 ` Jay Vosburgh
2010-05-03 3:04 ` John Fastabend
2010-05-03 18:25 ` Jay Vosburgh
2010-05-03 21:17 ` John Fastabend
2010-05-03 23:17 ` Jay Vosburgh
2010-05-05 5:35 ` John Fastabend
2010-05-06 17:42 ` Jay Vosburgh [this message]
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=23107.1273167750@death.nxdomain.ibm.com \
--to=fubar@us.ibm.com \
--cc=andy@greyhouse.net \
--cc=bonding-devel@lists.sourceforge.net \
--cc=christopher.leech@intel.com \
--cc=john.r.fastabend@intel.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/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 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).