* netisr CPU affinity lookup given just the hash and hashtype. */
| 354 | * netisr CPU affinity lookup given just the hash and hashtype. |
| 355 | */ |
| 356 | u_int |
| 357 | rss_hash2cpuid(uint32_t hash_val, uint32_t hash_type) |
| 358 | { |
| 359 | |
| 360 | switch (hash_type) { |
| 361 | case M_HASHTYPE_RSS_IPV4: |
| 362 | case M_HASHTYPE_RSS_TCP_IPV4: |
| 363 | case M_HASHTYPE_RSS_UDP_IPV4: |
| 364 | case M_HASHTYPE_RSS_IPV6: |
| 365 | case M_HASHTYPE_RSS_TCP_IPV6: |
| 366 | case M_HASHTYPE_RSS_UDP_IPV6: |
| 367 | return (rss_getcpu(rss_getbucket(hash_val))); |
| 368 | default: |
| 369 | return (NETISR_CPUID_NONE); |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | /* |
| 374 | * Query the RSS bucket associated with the given hash value and |
no test coverage detected