summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-07-12 05:43:43 +0000
committeradrian <adrian@FreeBSD.org>2014-07-12 05:43:43 +0000
commit59e42691b9c8cd8a9af3ddf14ee7da526f8389eb (patch)
treef2b87fe443b3327db001ec0cb85d8ed9a8e4933d /sys
parent6a10a5d072f8b6bc2af35a5c1173f9435626360b (diff)
downloadFreeBSD-src-59e42691b9c8cd8a9af3ddf14ee7da526f8389eb.zip
FreeBSD-src-59e42691b9c8cd8a9af3ddf14ee7da526f8389eb.tar.gz
Add RSS hashing awareness for IPv6 and TCP IPv6 hash types.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in_rss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/in_rss.c b/sys/netinet/in_rss.c
index 4e6a454..fac083e 100644
--- a/sys/netinet/in_rss.c
+++ b/sys/netinet/in_rss.c
@@ -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:
OpenPOWER on IntegriCloud