net: Add utility functions to clear rxhash
authorTom Herbert <therbert@google.com>
Mon, 16 Dec 2013 06:12:18 +0000 (22:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2013 21:36:21 +0000 (16:36 -0500)
commit7539fadcb8146a5f0db51e80d99c9e724efec7b0
tree7d3563c2240b16402d536162b4f49bdf036b91ed
parent3958afa1b272eb07109fd31549e69193b4d7c364
net: Add utility functions to clear rxhash

In several places 'skb->rxhash = 0' is being done to clear the
rxhash value in an skb.  This does not clear l4_rxhash which could
still be set so that the rxhash wouldn't be recalculated on subsequent
call to skb_get_rxhash.  This patch adds an explict function to clear
all the rxhash related information in the skb properly.

skb_clear_hash_if_not_l4 clears the rxhash only if it is not marked as
l4_rxhash.

Fixed up places where 'skb->rxhash = 0' was being called.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/dst.h
net/ipv4/ip_fragment.c
net/ipv4/ip_tunnel_core.c
net/openvswitch/actions.c