Lines Matching defs:rx_hash
4 * 1. Read packets and their rx_hash using PF_PACKET/TPACKET_V3
5 * 2. Compute the rx_hash in software based on the packet contents
13 * 5. Compute the rxqueue that RSS would select based on this rx_hash
20 * 5. Compute the cpu that RPS should select based on rx_hash and $rps_bitmap
130 static void verify_rss(uint32_t rx_hash, int cpu)
132 int queue = rx_hash % cfg_num_queues;
141 static void verify_rps(uint64_t rx_hash, int cpu)
143 int silo = (rx_hash * cfg_num_rps_cpus) >> 32;
152 static void log_rxhash(int cpu, uint32_t rx_hash,
163 log_verbose("cpu %d: rx_hash 0x%08x [saddr %s daddr %s sport %02hu dport %02hu]",
164 cpu, rx_hash, saddr, daddr,
169 static void verify_rxhash(const char *pkt, uint32_t rx_hash, int cpu)
188 log_rxhash(cpu, rx_hash, addrs, addr_len);
190 if (rx_hash != rx_hash_sw) {
198 verify_rss(rx_hash, cpu);
200 verify_rps(rx_hash, cpu);