From 8f7e75cbbd14683c215cadc4dd366117d0ca2fcb Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 30 Jun 2014 04:26:29 +0000 Subject: [PATCH] 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. --- sys/netinet/tcp_timer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 3874f133746..1767e1ed83d 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -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");