From: Patrick McHardy <kaber@trash.net>
To: John Morrissey <jwm@horde.net>
Cc: netdev@vger.kernel.org
Subject: Re: bnx2 hardware VLAN acceleration and PF_PACKET/tap interfaces
Date: Tue, 08 Jul 2008 22:50:25 +0200 [thread overview]
Message-ID: <4873D311.50806@trash.net> (raw)
In-Reply-To: <20080708200508.GA19505@boost.horde.net>
John Morrissey wrote:
> I'm struggling with VLAN tags being stripped the bnx2 driver/hardware when
> hardware VLAN acceleration is enabled.
>
> I'm trying to (a) tcpdump(8) on the main interface and see tagged traffic
> and (b) place the main interface into a bridge group and attach a tap
> interface to the bridge to give KVM virtual machines access to that
> interface. The VMs would then have their own choice of VLANs without having
> to create separate VLAN subints, bridge groups, and tap interfaces on the
> KVM host for each VLAN that a VM needs access to.
>
> I've seen these threads, which indicate this is due to the implementation
> particulars of hardware VLAN acceleration:
>
> http://marc.info/?l=linux-netdev&m=117269169822297&w=2
> http://marc.info/?l=linux-netdev&m=119395331216242&w=2
>
> The adapters are "NetXtreme II BCM5708S Gigabit Ethernet rev 12" in IBM
> BladeCenter chassis. I've tried disabling the use of ASF_ENABLE_FLAG in
> bnx2, but this doesn't seem to have changed its behavior any. The Broadcom
> firmware upgarde utility says ASF isn't supported by this chipset when I try
> to 'cfg -asf 0', so perhaps this adapter doesn't support ASF and I'm barking
> up the wrong tree?
>
> Flailing around, I tried #defining BCM_VLAN to 0 to disable hardware VLAN
> acceleration. This breaks the driver build since there's an unguarded use of
> struct bnx2->vlgrp in bnx2_start_xmit().
>
> I'm also seeing some tcpdump(8) behavior that I don't understand. When I
> tcpdump the main interface (not the VLAN subint), I see only *outbound*
> traffic for the last VLAN configured on the interface, and no other traffic.
> Is this some side-effect of the hardware VLAN acceleration?
>
> Is there any hope of having this work? I'm working with 2.6.24 (from Ubuntu
> 8.04 FWIW) and have glanced at the bnx2 driver in 2.6.25, which seems
> essentially the same.
These patches I posted this morning are supposed to fix this:
http://marc.info/?l=linux-netdev&m=121551210526043&w=2
prev parent reply other threads:[~2008-07-08 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 20:05 bnx2 hardware VLAN acceleration and PF_PACKET/tap interfaces John Morrissey
2008-07-08 20:50 ` Patrick McHardy [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=4873D311.50806@trash.net \
--to=kaber@trash.net \
--cc=jwm@horde.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).