Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 16:27:47 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208508 - head/sys/netipsec
Message-ID:  <201005241627.o4OGRlLV052361@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005241627.o4OGRlLV052361>