From: "Joonwoo Park" <joonwpark81@gmail.com>
To: "'Herbert Xu'" <herbert@gondor.apana.org.au>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<davem@davemloft.net>, <tristan_schmelcher@alumni.uwaterloo.ca>,
<acme@ghostprotocols.net>
Subject: RE: [PATCH] [NET]: Fix TX bug VLAN in VLAN
Date: Tue, 27 Nov 2007 16:02:19 +0900 [thread overview]
Message-ID: <002801c830c3$783319f0$9c94fea9@jason> (raw)
In-Reply-To: <20071127063859.GB2942@gondor.apana.org.au>
2007/11/27, Herbert Xu <herbert@gondor.apana.org.au>:
> On Tue, Nov 27, 2007 at 02:32:49PM +0900, Joonwoo Park wrote:
> >
> > Thanks Herbert.
> > Well.. I think patch would work propely for AF_PACKET also.
> > (I did not insert BUG() macro in my patch)
> > How do you think?
>
> Are you sure? I thought you need to check both in the xmit function.
> That is,
>
> if (veth->h_vlan_proto != htons(ETH_P_8021Q) ||
> VLAN_DEV_INFO(dev)->flags & VLAN_FLAG_REORDER_HDR) {
>
> Otherwise you'll miss AF_PACKET packets when REORDER is off.
Thanks Herbert!
I agree with you.
Thanks.
Joonwoo
[NET]: Fix TX bug VLAN in VLAN
Fix misbehavior of vlan_dev_hard_start_xmit() for recursive encapsulations.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
---
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 7a36878..4f99bb8 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -462,7 +462,8 @@ int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
* OTHER THINGS LIKE FDDI/TokenRing/802.3 SNAPs...
*/
- if (veth->h_vlan_proto != htons(ETH_P_8021Q)) {
+ if (veth->h_vlan_proto != htons(ETH_P_8021Q) ||
+ VLAN_DEV_INFO(dev)->flags & VLAN_FLAG_REORDER_HDR) {
int orig_headroom = skb_headroom(skb);
unsigned short veth_TCI;
---
next prev parent reply other threads:[~2007-11-27 7:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 12:12 [PATCH] [NET]: Fix TX bug VLAN in VLAN Joonwoo Park
2007-11-26 11:26 ` Herbert Xu
2007-11-27 5:32 ` Joonwoo Park
2007-11-27 6:38 ` Herbert Xu
2007-11-27 7:02 ` Joonwoo Park [this message]
2007-11-29 11:19 ` Herbert Xu
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='002801c830c3$783319f0$9c94fea9@jason' \
--to=joonwpark81@gmail.com \
--cc=acme@ghostprotocols.net \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tristan_schmelcher@alumni.uwaterloo.ca \
/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