* [patch net-2.6] vlan: reset headers on accel emulation path
@ 2011-08-18 16:35 Jiri Pirko
2011-08-18 18:16 ` Greg KH
2011-08-19 4:29 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jiri Pirko @ 2011-08-18 16:35 UTC (permalink / raw)
To: netdev; +Cc: davem, gregkh, kaber, shemminger, eric.dumazet
It's after all necessary to do reset headers here. The reason is we
cannot depend that it gets reseted in __netif_receive_skb once skb is
reinjected. For incoming vlanids without vlan_dev, vlan_do_receive()
returns false with skb != NULL and __netif_reveive_skb continues, skb is
not reinjected.
This might be good material for 3.0-stable as well
Reported-by: Mike Auty <mike.auty@gmail.com>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
---
net/8021q/vlan_core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c
index 5f27f8e..f1f2f7b 100644
--- a/net/8021q/vlan_core.c
+++ b/net/8021q/vlan_core.c
@@ -167,6 +167,8 @@ struct sk_buff *vlan_untag(struct sk_buff *skb)
if (unlikely(!skb))
goto err_free;
+ skb_reset_network_header(skb);
+ skb_reset_transport_header(skb);
return skb;
err_free:
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch net-2.6] vlan: reset headers on accel emulation path
2011-08-18 16:35 [patch net-2.6] vlan: reset headers on accel emulation path Jiri Pirko
@ 2011-08-18 18:16 ` Greg KH
2011-08-19 4:29 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2011-08-18 18:16 UTC (permalink / raw)
To: Jiri Pirko; +Cc: netdev, davem, kaber, shemminger, eric.dumazet
On Thu, Aug 18, 2011 at 06:35:45PM +0200, Jiri Pirko wrote:
> It's after all necessary to do reset headers here. The reason is we
> cannot depend that it gets reseted in __netif_receive_skb once skb is
> reinjected. For incoming vlanids without vlan_dev, vlan_do_receive()
> returns false with skb != NULL and __netif_reveive_skb continues, skb is
> not reinjected.
>
> This might be good material for 3.0-stable as well
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch net-2.6] vlan: reset headers on accel emulation path
2011-08-18 16:35 [patch net-2.6] vlan: reset headers on accel emulation path Jiri Pirko
2011-08-18 18:16 ` Greg KH
@ 2011-08-19 4:29 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2011-08-19 4:29 UTC (permalink / raw)
To: jpirko; +Cc: netdev, gregkh, kaber, shemminger, eric.dumazet
From: Jiri Pirko <jpirko@redhat.com>
Date: Thu, 18 Aug 2011 18:35:45 +0200
> It's after all necessary to do reset headers here. The reason is we
> cannot depend that it gets reseted in __netif_receive_skb once skb is
> reinjected. For incoming vlanids without vlan_dev, vlan_do_receive()
> returns false with skb != NULL and __netif_reveive_skb continues, skb is
> not reinjected.
>
> This might be good material for 3.0-stable as well
>
> Reported-by: Mike Auty <mike.auty@gmail.com>
> Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Applied and queued up for -stable, thanks Jiri!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-19 4:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-18 16:35 [patch net-2.6] vlan: reset headers on accel emulation path Jiri Pirko
2011-08-18 18:16 ` Greg KH
2011-08-19 4:29 ` David Miller
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).