Skip to contentSkip to conversation

: net: rps: reset network header before calling skb_get_rxhash()

PATCH Applied Changli Gao 2 participants 2 messages Aug 18, 2010 – Aug 20, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/8 : net: rps: reset network header before calling skb_get_rxhash()

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

commit bfb564e7391340638afe4ad67744a8f3858e7566

Author: Krishna Kumar <[email protected]>
Date:   Wed Aug 4 06:15:52 2010 +0000

core: Factor out flow calculation from get_rps_cpu

---
 net/core/dev.c |    1 +
 1 file changed, 1 insertion(+)
net/core/dev.c +1 -0
index 586a11c..382a6d0 100644
@@ -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;
 
maintainer Applied
#1 lore raw

From: Changli Gao <[email protected]>
Date: Wed, 18 Aug 2010 13:00:56 +0800

Quoted 10 lines

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

commit bfb564e7391340638afe4ad67744a8f3858e7566

Author: Krishna Kumar <[email protected]>
Date:   Wed Aug 4 06:15:52 2010 +0000

core: Factor out flow calculation from get_rps_cpu

Applied, thanks.