svn commit: r208508 - head/sys/netipsec

Bjoern A. Zeeb bz at FreeBSD.org
Mon May 24 16:27:48 UTC 2010


Author: bz
Date: Mon May 24 16:27:47 2010
New Revision: 208508
URL: http://svn.freebsd.org/changeset/base/208508

Log:
  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

Modified:
  head/sys/netipsec/ipsec_input.c

Modified: head/sys/netipsec/ipsec_input.c
==============================================================================
--- head/sys/netipsec/ipsec_input.c	Mon May 24 15:45:05 2010	(r208507)
+++ head/sys/netipsec/ipsec_input.c	Mon May 24 16:27:47 2010	(r208508)
@@ -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-all mailing list