From: Vlad Yasevich <vyasevic@redhat.com>
To: nicolas.dichtel@6wind.com, Jiri Pirko <jiri@resnulli.us>
Cc: netdev@vger.kernel.org, Patrick McHardy <kaber@trash.net>,
Nithin Nayak Sujir <nsujir@broadcom.com>,
Michael Chan <mchan@broadcom.com>
Subject: Re: [PATCH v2 net] net: Always untag vlan-tagged traffic on input.
Date: Mon, 29 Sep 2014 09:54:58 -0400 [thread overview]
Message-ID: <542964B2.3090303@redhat.com> (raw)
In-Reply-To: <542962CF.6000602@6wind.com>
On 09/29/2014 09:46 AM, Nicolas Dichtel wrote:
> Le 29/09/2014 15:05, Jiri Pirko a écrit :
>> Mon, Sep 29, 2014 at 02:44:57PM CEST, nicolas.dichtel@6wind.com wrote:
>>> Le 08/08/2014 20:42, Vladislav Yasevich a écrit :
>>> [snip]
>>>>
>>>> The patch attempt to fix this another way. It moves the vlan header
>>>> stipping code out of the vlan module and always builds it into the
>>>> kernel network core. This way, even if vlan is not supported on
>>>> a virtualizatoin host, the virtual machines running on top of such
>>>> host will still work with VLANs enabled.
>>> After this patch (0d5501c1c828 ("net: Always untag vlan-tagged traffic on
>>> input.")), tcpdump will not be able to display the VLAN header on input path.
>>> Is this really intended?
>>
>> I assume you are talking about the case when CONFIG_VLAN_8021Q is "n"
>> right? Because if it is "m" of "y" I see no change in the code.
> Right.
>
>>
>> In case of CONFIG_VLAN_8021Q is "n" the only change is that for
>> non-accelerated path, skb->vlan_tci is set and vlan header is stripped.
>> This makes the path same to accelerated path.
>>
>> tcpdump should be able to cope with skb->vlan_tci
> My fault, I've tested with a quite old tcpdump version, with a recent one it
> works perfectly!
Thanks. BTW, did that old tcpdump version work correctly when CONFIG_VLAN_8021Q
was y or m? My guess is that it would not.
-vlad
>
>
> Thank you,
> Nicolas
next prev parent reply other threads:[~2014-09-29 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-08 18:42 [PATCH v2 net] net: Always untag vlan-tagged traffic on input Vladislav Yasevich
2014-08-09 6:44 ` Jiri Pirko
2014-08-11 19:17 ` David Miller
2014-09-29 12:44 ` Nicolas Dichtel
2014-09-29 13:05 ` Jiri Pirko
2014-09-29 13:46 ` Nicolas Dichtel
2014-09-29 13:54 ` Vlad Yasevich [this message]
2014-09-29 13:58 ` Nicolas Dichtel
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=542964B2.3090303@redhat.com \
--to=vyasevic@redhat.com \
--cc=jiri@resnulli.us \
--cc=kaber@trash.net \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=nsujir@broadcom.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.