netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8]: net: rps: reset network header before calling skb_get_rxhash()
@ 2010-08-18  5:00 Changli Gao
  2010-08-20  0:08 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Changli Gao @ 2010-08-18  5:00 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Changli Gao

skb_get_rxhash() assumes the network header pointer of the skb is set
properly after the commit: 

commit bfb564e7391340638afe4ad67744a8f3858e7566
Author: Krishna Kumar <krkumar2@in.ibm.com>
Date:   Wed Aug 4 06:15:52 2010 +0000

    core: Factor out flow calculation from get_rps_cpu

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
---
 net/core/dev.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/net/core/dev.c b/net/core/dev.c
index 586a11c..382a6d0 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2372,6 +2372,7 @@ static int get_rps_cpu(struct net_device *dev, struct sk_buff *skb,
 	if (!rxqueue->rps_map && !rxqueue->rps_flow_table)
 		goto done;
 
+	skb_reset_network_header(skb);
 	if (!skb_get_rxhash(skb))
 		goto done;
 

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

* Re: [PATCH 1/8]: net: rps: reset network header before calling skb_get_rxhash()
  2010-08-18  5:00 [PATCH 1/8]: net: rps: reset network header before calling skb_get_rxhash() Changli Gao
@ 2010-08-20  0:08 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-08-20  0:08 UTC (permalink / raw)
  To: xiaosuo; +Cc: netdev

From: Changli Gao <xiaosuo@gmail.com>
Date: Wed, 18 Aug 2010 13:00:56 +0800

> skb_get_rxhash() assumes the network header pointer of the skb is set
> properly after the commit: 
> 
> commit bfb564e7391340638afe4ad67744a8f3858e7566
> Author: Krishna Kumar <krkumar2@in.ibm.com>
> Date:   Wed Aug 4 06:15:52 2010 +0000
> 
>     core: Factor out flow calculation from get_rps_cpu
> 
> Signed-off-by: Changli Gao <xiaosuo@gmail.com>

Applied, thanks.

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

end of thread, other threads:[~2010-08-20  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18  5:00 [PATCH 1/8]: net: rps: reset network header before calling skb_get_rxhash() Changli Gao
2010-08-20  0:08 ` 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).