diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-08-17 15:00:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-19 20:08:37 -0400 |
commit | 2d47b45951af087c1a4439c559309b0bf90a0718 (patch) | |
tree | a81757118055d2b2340d9fce6312a9adf725dcae | |
parent | 91fe8173be4f4e330c6c3ab3fd4de96c11c98444 (diff) |
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 <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>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index c1dc8a95f6ff..cf87fde3a29b 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, | |||
2372 | if (!rxqueue->rps_map && !rxqueue->rps_flow_table) | 2372 | if (!rxqueue->rps_map && !rxqueue->rps_flow_table) |
2373 | goto done; | 2373 | goto done; |
2374 | 2374 | ||
2375 | skb_reset_network_header(skb); | ||
2375 | if (!skb_get_rxhash(skb)) | 2376 | if (!skb_get_rxhash(skb)) |
2376 | goto done; | 2377 | goto done; |
2377 | 2378 | ||