Commit 2d47b459 authored by Changli Gao's avatar Changli Gao Committed by David S. Miller

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 bfb564e7
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: default avatarChangli Gao <xiaosuo@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 91fe8173
...@@ -2372,6 +2372,7 @@ static int get_rps_cpu(struct net_device *dev, struct sk_buff *skb, ...@@ -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) if (!rxqueue->rps_map && !rxqueue->rps_flow_table)
goto done; goto done;
skb_reset_network_header(skb);
if (!skb_get_rxhash(skb)) if (!skb_get_rxhash(skb))
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment