From: "Ward, David - 0663 - MITLL" <david.ward@ll.mit.edu>
To: David Miller <davem@davemloft.net>
Cc: "jorge@dti2.net" <jorge@dti2.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] net/vlan: withdraw VLAN ID attribute from GVRP on VLAN device stop
Date: Mon, 26 Mar 2012 21:35:20 -0400 [thread overview]
Message-ID: <4F711958.5060904@ll.mit.edu> (raw)
In-Reply-To: <20120326.174216.151181141269420661.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]
On 03/26/2012 05:42 PM, David Miller wrote:
> From: "Ward, David - 0663 - MITLL"<david.ward@ll.mit.edu>
> Date: Mon, 26 Mar 2012 11:50:16 -0400
>
>> If I create an interface that is initially down, then bring it up, and
>> finally bring it back down, I think it should return to the state it
>> was in initially. So in my opinion, either the GVRP attribute should
>> exist while the interface is down, or it shouldn't.
> You're whole argument breaks down because we definitely don't do this
> for IPv4 addresses, we'll keep receiving traffic for IPv4 addresses
> configured on that interface when received on other interfaces which
> are still up, even when you bring that interface down.
... but that also seems to work if you never bring the interface up. I
can create a dummy interface, set an IP address on it, and immediately
receive traffic on that IP address from another interface, without ever
having brought the dummy interface up. (The behavior after setting the
interface down is the same as before the interface was ever brought up.)
Instead with GVRP, I create an interface and set the GVRP flag on it,
but GVRP does not declare the attribute for that VLAN until you bring
the VLAN interface up the first time. However it doesn't withdraw the
attribute when you bring the VLAN interface down, only when you delete it.
So to approach this differently -- would there be anything wrong with
GVRP declaring the attribute as soon as the GVRP flag is set, even if
the VLAN interface has not come up yet? The user might do this to
deliberately give the switching infrastructure a head start, so that
(for example) the IPv6 DAD packets that are sent as soon as the VLAN
interface comes up make it to all participants on the LAN...right now
you can't do that. You could still choose not to set the GVRP flag on
the interface until you bring it up, similar to what you were saying.
Then each attribute declaration event would have an opposite attribute
withdrawal event. This means if we tried to create an attribute that
already existed and wasn't in the "leaving" state, it would alert us to
a bug.
Thoughts?
David
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4558 bytes --]
next prev parent reply other threads:[~2012-03-27 2:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-25 22:43 [PATCH] net/garp: avoid infinite loop if attribute already exists David Ward
2012-03-25 22:43 ` [PATCH] net/vlan: withdraw VLAN ID attribute from GVRP on VLAN device stop David Ward
2012-03-26 11:29 ` Jorge Boncompte [DTI2]
2012-03-26 13:38 ` Ward, David - 0663 - MITLL
2012-03-26 15:14 ` Jorge Boncompte [DTI2]
2012-03-26 15:50 ` Ward, David - 0663 - MITLL
2012-03-26 21:42 ` David Miller
2012-03-27 1:35 ` Ward, David - 0663 - MITLL [this message]
2012-03-26 11:23 ` [PATCH] net/garp: avoid infinite loop if attribute already exists Jorge Boncompte [DTI2]
2012-03-26 14:11 ` Ward, David - 0663 - MITLL
2012-03-26 15:26 ` Jorge Boncompte [DTI2]
2012-03-26 16:07 ` Ward, David - 0663 - MITLL
2012-03-27 19:01 ` [PATCH v2] " David Ward
2012-03-28 11:28 ` Jorge Boncompte [DTI2]
2012-03-28 13:28 ` Ward, David - 0663 - MITLL
2012-03-28 20:45 ` David Miller
2012-03-26 21:44 ` [PATCH] " David Miller
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=4F711958.5060904@ll.mit.edu \
--to=david.ward@ll.mit.edu \
--cc=davem@davemloft.net \
--cc=jorge@dti2.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).