netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: reset skb queue mapping when rx'ing over tunnel
@ 2010-09-23 21:19 Tom Herbert
  2010-09-24  2:06 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Herbert @ 2010-09-23 21:19 UTC (permalink / raw)
  To: netdev, davem; +Cc: chavey

Reset queue mapping when an skb is reentering the stack via a tunnel.
On second pass, the queue mapping from the original device is no
longer valid.

Signed-off-by: Tom Herbert <therbert@google.com>
---
diff --git a/include/net/dst.h b/include/net/dst.h
index 81d1413..0238650 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -242,6 +242,7 @@ static inline void skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev)
 	dev->stats.rx_packets++;
 	dev->stats.rx_bytes += skb->len;
 	skb->rxhash = 0;
+	skb_set_queue_mapping(skb, 0);
 	skb_dst_drop(skb);
 	nf_reset(skb);
 }

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-27  1:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 21:19 [PATCH] net: reset skb queue mapping when rx'ing over tunnel Tom Herbert
2010-09-24  2:06 ` Eric Dumazet
2010-09-24 16:18   ` Tom Herbert
2010-09-25  6:49     ` Eric Dumazet
2010-09-27  1:48       ` 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).