aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2011-08-14 15:45:55 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-17 23:06:03 -0400
commitbdeab991918663aed38757904219e8398214334c (patch)
treebc6c02da7ed88e3e568677b4a35fb4e55de363de /include/net/dst.h
parent792df22cd0499b4e662d4618b0008fdcfef8b04e (diff)
rps: Add flag to skb to indicate rxhash is based on L4 tuple
The l4_rxhash flag was added to the skb structure to indicate that the rxhash value was computed over the 4 tuple for the packet which includes the port information in the encapsulated transport packet. This is used by the stack to preserve the rxhash value in __skb_rx_tunnel. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 13d507d69ddb..4fb6c4381791 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -325,7 +325,14 @@ static inline void skb_dst_force(struct sk_buff *skb)
325static inline void __skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev) 325static inline void __skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev)
326{ 326{
327 skb->dev = dev; 327 skb->dev = dev;
328 skb->rxhash = 0; 328
329 /*
330 * Clear rxhash so that we can recalulate the hash for the
331 * encapsulated packet, unless we have already determine the hash
332 * over the L4 4-tuple.
333 */
334 if (!skb->l4_rxhash)
335 skb->rxhash = 0;
329 skb_set_queue_mapping(skb, 0); 336 skb_set_queue_mapping(skb, 0);
330 skb_dst_drop(skb); 337 skb_dst_drop(skb);
331 nf_reset(skb); 338 nf_reset(skb);