mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Add hash awareness of the IPv4 and IPv6 UDP 4-tuple.
Note: it would be nice if the supported hash check would be used here!
This commit is contained in:
parent
40c753e3da
commit
9870806c93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268912
@ -436,8 +436,10 @@ rss_hash2cpuid(uint32_t hash_val, uint32_t hash_type)
|
||||
switch (hash_type) {
|
||||
case M_HASHTYPE_RSS_IPV4:
|
||||
case M_HASHTYPE_RSS_TCP_IPV4:
|
||||
case M_HASHTYPE_RSS_UDP_IPV4:
|
||||
case M_HASHTYPE_RSS_IPV6:
|
||||
case M_HASHTYPE_RSS_TCP_IPV6:
|
||||
case M_HASHTYPE_RSS_UDP_IPV6:
|
||||
return (rss_getcpu(rss_getbucket(hash_val)));
|
||||
default:
|
||||
return (NETISR_CPUID_NONE);
|
||||
@ -455,8 +457,10 @@ rss_hash2bucket(uint32_t hash_val, uint32_t hash_type, uint32_t *bucket_id)
|
||||
switch (hash_type) {
|
||||
case M_HASHTYPE_RSS_IPV4:
|
||||
case M_HASHTYPE_RSS_TCP_IPV4:
|
||||
case M_HASHTYPE_RSS_UDP_IPV4:
|
||||
case M_HASHTYPE_RSS_IPV6:
|
||||
case M_HASHTYPE_RSS_TCP_IPV6:
|
||||
case M_HASHTYPE_RSS_UDP_IPV6:
|
||||
*bucket_id = rss_getbucket(hash_val);
|
||||
return (0);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user