-
-/*
- * __skb_get_hash: calculate a flow hash based on src/dst addresses
-- * and src/dst port numbers. Sets rxhash in skb to non-zero hash value
-- * on success, zero indicates no valid hash. Also, sets l4_rxhash in skb
+- * and src/dst port numbers. Sets hash in skb to non-zero hash value
+- * on success, zero indicates no valid hash. Also, sets l4_hash in skb
- * if hash is a canonical 4-tuple hash over transport ports.
- */
-void __skb_get_hash(struct sk_buff *skb)
- return;
-
- if (keys.ports)
-- skb->l4_rxhash = 1;
+- skb->l4_hash = 1;
-
- /* get a consistent hash (same value on both flow directions) */
- if (((__force u32)keys.dst < (__force u32)keys.src) ||
- if (!hash)
- hash = 1;
-
-- skb->rxhash = hash;
+- skb->hash = hash;
-}
-EXPORT_SYMBOL(__skb_get_hash);
-
- hash = skb->sk->sk_hash;
- else
- hash = (__force u16) skb->protocol ^
-- skb->rxhash;
+- skb->hash;
- hash = __flow_hash_1word(hash);
- queue_index = map->queues[
- ((u64)hash * map->len) >> 32];