* Given a hash of whatever the covered tuple might be, return a pcbgroup * index. Where RSS is supported, try to align bucket selection with RSS CPU * affinity strategy. */
| 55 | * affinity strategy. |
| 56 | */ |
| 57 | static __inline u_int |
| 58 | in6_pcbgroup_getbucket(struct inpcbinfo *pcbinfo, uint32_t hash) |
| 59 | { |
| 60 | |
| 61 | #ifdef RSS |
| 62 | return (rss_getbucket(hash)); |
| 63 | #else |
| 64 | return (hash % pcbinfo->ipi_npcbgroups); |
| 65 | #endif |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Map a (hashtype, hash) tuple into a connection group, or NULL if the hash |
no test coverage detected