When it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known

type.
This commit is contained in:
Adrian Chadd 2014-07-20 07:39:54 +00:00
parent 58ef629f00
commit 0ae3f42231
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268914

View file

@ -73,6 +73,8 @@ 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_IPV6) ||
(pcbinfo->ipi_hashfields == IPI_HASHFIELDS_4TUPLE &&
hashtype == M_HASHTYPE_RSS_UDP_IPV6) ||
(pcbinfo->ipi_hashfields == IPI_HASHFIELDS_2TUPLE &&
hashtype == M_HASHTYPE_RSS_IPV6))
return (&pcbinfo->ipi_pcbgroups[