summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2014-07-07 00:02:49 +0000
committerbryanv <bryanv@FreeBSD.org>2014-07-07 00:02:49 +0000
commitc7454c4baf5a2846d2d8e4e57c03db47a63a0af2 (patch)
tree625c7ab65db59e2d46dfb8a720c8bc116389281b /sys
parent83e469f56c179816fee27747eeee49ffde1ac3cd (diff)
downloadFreeBSD-src-c7454c4baf5a2846d2d8e4e57c03db47a63a0af2.zip
FreeBSD-src-c7454c4baf5a2846d2d8e4e57c03db47a63a0af2.tar.gz
Use the appropriate IPv6 hashtype defines when looking up the PCBGROUP
Reviewed by: adrian@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/in6_pcbgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_pcbgroup.c b/sys/netinet6/in6_pcbgroup.c
index 3e2700c..c5c45d2 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
OpenPOWER on IntegriCloud