Lines Matching defs:hash
264 u32 hash;
266 /* get a consistent hash (same value on both flow directions) */
274 hash = __flow_hash_3words((__force u32)keys->dst,
277 if (!hash)
278 hash = 1;
280 return hash;
290 * __skb_get_hash: calculate a flow hash based on src/dst addresses
291 * and src/dst port numbers. Sets hash in skb to non-zero hash value
292 * on success, zero indicates no valid hash. Also, sets l4_hash in skb
293 * if hash is a canonical 4-tuple hash over transport ports.
307 skb->hash = __flow_hash_from_keys(&keys);
312 * Returns a Tx hash based on the given packet descriptor a Tx queues' number
318 u32 hash;
323 hash = skb_get_rx_queue(skb);
324 while (unlikely(hash >= num_tx_queues))
325 hash -= num_tx_queues;
326 return hash;