From 6700a7d44b04c60e772ea5d3088aa017cb256ccf Mon Sep 17 00:00:00 2001 From: Bryan Venteicher Date: Mon, 7 Jul 2014 00:02:49 +0000 Subject: [PATCH] Use the appropriate IPv6 hashtype defines when looking up the PCBGROUP Reviewed by: adrian@ --- sys/netinet6/in6_pcbgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/in6_pcbgroup.c b/sys/netinet6/in6_pcbgroup.c index 3e2700c0eb5..c5c45d27339 100644 --- a/sys/netinet6/in6_pcbgroup.c +++ b/sys/netinet6/in6_pcbgroup.c @@ -72,9 +72,9 @@ in6_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t hash) #ifdef RSS if ((pcbinfo->ipi_hashfields == IPI_HASHFIELDS_4TUPLE && - hashtype == M_HASHTYPE_RSS_TCP_IPV4) || + hashtype == M_HASHTYPE_RSS_TCP_IPV6) || (pcbinfo->ipi_hashfields == IPI_HASHFIELDS_2TUPLE && - hashtype == M_HASHTYPE_RSS_IPV4)) + hashtype == M_HASHTYPE_RSS_IPV6)) return (&pcbinfo->ipi_pcbgroups[ in6_pcbgroup_getbucket(pcbinfo, hash)]); #endif