summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_pcb.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2010-03-24 20:02:40 +0000
committerrrs <rrs@FreeBSD.org>2010-03-24 20:02:40 +0000
commite4906bb78b11d087669725c0bea9c0c9a3bbf36a (patch)
treefa60b3df1928a683e678826b6947f39c22f7ca9c /sys/netinet/sctp_pcb.h
parent96102fe418ccf3282eb6fba39a7a1932525e870e (diff)
downloadFreeBSD-src-e4906bb78b11d087669725c0bea9c0c9a3bbf36a.zip
FreeBSD-src-e4906bb78b11d087669725c0bea9c0c9a3bbf36a.tar.gz
Adds the option of keeping per-cpu statistics in SCTP. This
may be useful since it gets rid of atomics but I want it to remain an option until I can do further testing on if it really speeds things up.
Diffstat (limited to 'sys/netinet/sctp_pcb.h')
-rw-r--r--sys/netinet/sctp_pcb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h
index d9e1db6..bf14175 100644
--- a/sys/netinet/sctp_pcb.h
+++ b/sys/netinet/sctp_pcb.h
@@ -246,7 +246,11 @@ struct sctp_base_info {
* All static structures that anchor the system must be here.
*/
struct sctp_epinfo sctppcbinfo;
+#if defined(__FreeBSD__) && defined(SMP) && defined(SCTP_USE_PERCPU_STAT)
+ struct sctpstat sctpstat[MAXCPU];
+#else
struct sctpstat sctpstat;
+#endif
struct sctp_sysctl sctpsysctl;
uint8_t first_time;
char sctp_pcb_initialized;
OpenPOWER on IntegriCloud