netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Seblu <seblu@seblu.net>
To: Jesse Gross <jesse@nicira.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: bnx2 vlan issue
Date: Thu, 24 Mar 2011 13:58:19 +0100	[thread overview]
Message-ID: <AANLkTimnKRDY8QLiJMMLqNzCA_-6UJmUDHKf-i1Yt3V5@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=D9Qw+Tw7wHb2T7UG_o9zkZcr2meHE3fwcMwvF@mail.gmail.com>

On Wed, Mar 23, 2011 at 12:19 AM, Jesse Gross <jesse@nicira.com> wrote:
> On Tue, Mar 22, 2011 at 3:59 AM, Seblu <seblu@seblu.net> wrote:
>> On Tue, Mar 22, 2011 at 3:05 AM, Jesse Gross <jesse@nicira.com> wrote:
>>> On Thu, Mar 17, 2011 at 4:22 PM, Seblu <seblu@seblu.net> wrote:
>>>> On Thu, Mar 17, 2011 at 8:16 PM, Jesse Gross <jesse@nicira.com> wrote:
>>>>> On Thu, Mar 17, 2011 at 11:02 AM, Seblu <seblu@seblu.net> wrote:
>>>>>> On Thu, Mar 17, 2011 at 3:51 PM, Seblu <seblu@seblu.net> wrote:
>>>> How can I create a bridge with the untagged vlan from an interface?
>>>>
>>>>> * bridge on interface, vlans on bridge device.  This gives you a
>>>>> bridge with all packets and vlan devices can give you specific vlans.
>>>> I cannot use this schema, i used bridge to bring together vnet
>>>> interface and vlan interface.
>>>
>>> I'm not sure I understand why you say you can't use this.  You can
>>> combine vlans and bridging pretty much arbitrarily, including stacking
>>> multiple layers.
>> I don't see _how I can bridge an interface with an untagged vlan from
>> another interface_.
>>
>> I little example is maybe more clear:
>> My dekstop have 2 NIC (eth0, eth1). I receive from network admin 2
>> vlans. 20 untag and 21 tagged. My laptop is plugged to eth1.
>> I want "export" untagged vlan 20 to eth1.
>> Before 2.6.37, i do something like br0 = (eth0 + eth1). I put an ip on
>> br0 and on eth0.21. And br0 just have untagged frame from eth0 which
>> was transmitted to eth1. eth0.21 have only tagged frame from vlan 21.
>> eth1 did not receive tagged vlan 21.
>> After 2.6.37, i can do a bridge like before (br0 = eth0 + eth1) but i
>> must use br0.21 to have access to vlan 21 network in my desktop. But,
>> my laptop can also access to tagged vlan 21, and i don't want this.
>>
>> A lot of old xen based setup use this behaviour.
>> About my kvm test, I'm looking to the pci passtrough and macvtap, but
>> this requires configuration that supports it.
>> Why cannot have a eth0.U with only untagged frames?
>>
>>>
>>>>
>>>>> * Use ebtables rules in the bridge to accept/reject certain packets as desired.
>>>> I don't see how use ebtables to push untagged frame to a dedicated
>>>> iface which can be added in a bridge.
>>>
>>> You could have a bridge on the raw interface and connect all of the
>>> VMs that need untagged traffic.  If you add an ebtables rule to reject
>>> tagged traffic then vlan devices on the interface will continue to
>>> work as before.
>>>
>> If I ignores the fact that the name of the card is not fixed, i see.
>> But performance will follow? I don't believe this kind of config will
>> allow ~7/8Gbit/s of traffic.
>> Traversing ebtables rules is not free. And starting filtering traffic
>> is a really different job than just bridge cards together.
>
> I don't necessarily disagree that there should be a better way to do
> this, though as of the moment the above is probably your best bet.
>
> To me, the most important thing is to have consistent behavior across
> different cards.

Speaking of that, i've tryed  2.6.38 on my station (dell opitplex 980)
to use the new bridging schema and it doesn't work.
Exactly the case previously described: ip on br0 (eth0+eth1) and ip on
br0.42. eth0 driver is e1000e and eth1 is tg3. br0.42 don't receive
traffic.
I have to open a bug report?


> In 2.6.37 that behavior was standardized on the way
> non-accelerated NICs used to do but the other way is more common and
> perhaps better.  Eric B. posted a patch yesterday that better unifies
> the code paths.  This would be the first step to such a change because
> it would make it easier to move the handling logic for both at the
> same time.
Agree it's going in the right direction, but it's sad that breaks
basic network concept. Therefore hope in future versions.

Regards,

-- 
Sébastien Luttringer
www.seblu.net

  reply	other threads:[~2011-03-24 12:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17 14:51 bnx2 vlan issue Seblu
2011-03-17 18:02 ` Seblu
2011-03-17 19:16   ` Jesse Gross
2011-03-17 23:22     ` Seblu
2011-03-22  2:05       ` Jesse Gross
2011-03-22 10:59         ` Seblu
2011-03-22 23:19           ` Jesse Gross
2011-03-24 12:58             ` Seblu [this message]
2011-03-24 19:55               ` Jesse Gross
2011-03-25  0:26                 ` Seblu
2011-04-02  2:01                   ` Jesse Gross
2011-06-17  6:10                     ` Dominique Martinet
2011-06-17 16:47                       ` Jesse Gross

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=AANLkTimnKRDY8QLiJMMLqNzCA_-6UJmUDHKf-i1Yt3V5@mail.gmail.com \
    --to=seblu@seblu.net \
    --cc=jesse@nicira.com \
    --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).