svn commit: r209691 - stable/8/sys/netipsec
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Jul 4 12:22:18 UTC 2010
Author: bz
Date: Sun Jul 4 12:22:17 2010
New Revision: 209691
URL: http://svn.freebsd.org/changeset/base/209691
Log:
MFC r208508:
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
Modified:
stable/8/sys/netipsec/ipsec_input.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/netipsec/ipsec_input.c
==============================================================================
--- stable/8/sys/netipsec/ipsec_input.c Sun Jul 4 12:09:30 2010 (r209690)
+++ stable/8/sys/netipsec/ipsec_input.c Sun Jul 4 12:22:17 2010 (r209691)
@@ -489,7 +489,7 @@ ipsec4_common_input_cb(struct mbuf *m, s
/*
* 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);
More information about the svn-src-stable
mailing list