Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 05:43:43 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268559 - head/sys/netinet
Message-ID:  <201407120543.s6C5hhRf048907@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Jul 12 05:43:43 2014
New Revision: 268559
URL: http://svnweb.freebsd.org/changeset/base/268559

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

Modified:
  head/sys/netinet/in_rss.c

Modified: head/sys/netinet/in_rss.c
==============================================================================
--- head/sys/netinet/in_rss.c	Sat Jul 12 05:42:57 2014	(r268558)
+++ head/sys/netinet/in_rss.c	Sat Jul 12 05:43:43 2014	(r268559)
@@ -437,6 +437,8 @@ rss_hash2cpuid(uint32_t hash_val, uint32
 	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, uint3
 	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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407120543.s6C5hhRf048907>