From owner-svn-src-head@FreeBSD.ORG Sat Jul 12 05:43:44 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07460CD2; Sat, 12 Jul 2014 05:43:44 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E949820E3; Sat, 12 Jul 2014 05:43:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6C5hh6j048908; Sat, 12 Jul 2014 05:43:43 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6C5hhRf048907; Sat, 12 Jul 2014 05:43:43 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201407120543.s6C5hhRf048907@svn.freebsd.org> From: Adrian Chadd Date: Sat, 12 Jul 2014 05:43:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268559 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2014 05:43:44 -0000 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: