summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/ipsec_input.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-05-24 16:27:47 +0000
committerbz <bz@FreeBSD.org>2010-05-24 16:27:47 +0000
commit36eb388782ebccd910604f919e2bd8f13cc05362 (patch)
treeb6bb5f463283ade62ffe5253a6e1730a0d66ac56 /sys/netipsec/ipsec_input.c
parent9e6f9b1e86420cd7da13f1d568950ab52ff2428f (diff)
downloadFreeBSD-src-36eb388782ebccd910604f919e2bd8f13cc05362.zip
FreeBSD-src-36eb388782ebccd910604f919e2bd8f13cc05362.tar.gz
MFp4 @178283:
Improve IPsec flow distribution for better netisr parallelism. Instead of using the pointer that would have the last bits masked in a % statement in netisr_select_cpuid() to select the queue, use the SPI. Reviewed by: rwatson MFC after: 4 weeks
Diffstat (limited to 'sys/netipsec/ipsec_input.c')
-rw-r--r--sys/netipsec/ipsec_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index e449e85..0710d34 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -489,7 +489,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
/*
* Re-dispatch via software interrupt.
*/
- if ((error = netisr_queue_src(NETISR_IP, (uintptr_t)sav, m))) {
+ if ((error = netisr_queue_src(NETISR_IP, (uintptr_t)sav->spi, m))) {
IPSEC_ISTAT(sproto, V_espstat.esps_qfull, V_ahstat.ahs_qfull,
V_ipcompstat.ipcomps_qfull);
OpenPOWER on IntegriCloud