summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-07-20 07:38:38 +0000
committeradrian <adrian@FreeBSD.org>2014-07-20 07:38:38 +0000
commitc1ee0e57a1033db979c65f37ae886c66cecc3825 (patch)
tree103cd8e29bf1a53e08efd18b635f70ce9000669c
parent10af48ebe23b52b208b2512bb5cac8ff6bec02f3 (diff)
downloadFreeBSD-src-c1ee0e57a1033db979c65f37ae886c66cecc3825.zip
FreeBSD-src-c1ee0e57a1033db979c65f37ae886c66cecc3825.tar.gz
Make the PCBGROUPS code aware of IPv4 UDP 4-tuple.
-rw-r--r--sys/netinet/in_pcbgroup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcbgroup.c b/sys/netinet/in_pcbgroup.c
index 8dd5529..aa2f1c6 100644
--- a/sys/netinet/in_pcbgroup.c
+++ b/sys/netinet/in_pcbgroup.c
@@ -243,6 +243,8 @@ in_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) ||
+ (pcbinfo->ipi_hashfields == IPI_HASHFIELDS_4TUPLE &&
+ hashtype == M_HASHTYPE_RSS_UDP_IPV4) ||
(pcbinfo->ipi_hashfields == IPI_HASHFIELDS_2TUPLE &&
hashtype == M_HASHTYPE_RSS_IPV4))
return (&pcbinfo->ipi_pcbgroups[
OpenPOWER on IntegriCloud