If we're doing RSS then ensure the TCP timer selection uses the multi-CPU

callwheel setup, rather than just dumping all the timers on swi0.
This commit is contained in:
Adrian Chadd 2014-06-30 04:26:29 +00:00
parent c445c3c7f6
commit 8f7e75cbbd

View File

@ -127,7 +127,11 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, rexmit_drop_options, CTLFLAG_RW,
&tcp_rexmit_drop_options, 0,
"Drop TCP options from 3rd and later retransmitted SYN");
#ifdef RSS
static int per_cpu_timers = 1;
#else
static int per_cpu_timers = 0;
#endif
SYSCTL_INT(_net_inet_tcp, OID_AUTO, per_cpu_timers, CTLFLAG_RW,
&per_cpu_timers , 0, "run tcp timers on all cpus");