1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

If we're doing RSS then ensure that the callwheel swi's are CPU pinned.

This commit is contained in:
Adrian Chadd 2014-06-30 04:25:51 +00:00
parent 3da2a91a57
commit c445c3c7f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268026

View File

@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$");
#if defined(__arm__) #if defined(__arm__)
#include "opt_timer.h" #include "opt_timer.h"
#endif #endif
#include "opt_rss.h"
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -104,8 +105,13 @@ static int ncallout;
SYSCTL_INT(_kern, OID_AUTO, ncallout, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &ncallout, 0, SYSCTL_INT(_kern, OID_AUTO, ncallout, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &ncallout, 0,
"Number of entries in callwheel and size of timeout() preallocation"); "Number of entries in callwheel and size of timeout() preallocation");
#ifdef RSS
static int pin_default_swi = 1;
static int pin_pcpu_swi = 1;
#else
static int pin_default_swi = 0; static int pin_default_swi = 0;
static int pin_pcpu_swi = 0; static int pin_pcpu_swi = 0;
#endif
SYSCTL_INT(_kern, OID_AUTO, pin_default_swi, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &pin_default_swi, SYSCTL_INT(_kern, OID_AUTO, pin_default_swi, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &pin_default_swi,
0, "Pin the default (non-per-cpu) swi (shared with PCPU 0 swi)"); 0, "Pin the default (non-per-cpu) swi (shared with PCPU 0 swi)");