Add RSS hashing awareness for IPv6 and TCP IPv6 hash types.

This commit is contained in:
Adrian Chadd 2014-07-12 05:43:43 +00:00
parent 76e63232b6
commit e989b65f79
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268559

View File

@ -437,6 +437,8 @@ 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_IPV6:
case M_HASHTYPE_RSS_TCP_IPV6:
return (rss_getcpu(rss_getbucket(hash_val)));
default:
return (NETISR_CPUID_NONE);
@ -454,6 +456,8 @@ 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_IPV6:
case M_HASHTYPE_RSS_TCP_IPV6:
*bucket_id = rss_getbucket(hash_val);
return (0);
default: