diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-04-11 22:07:19 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-04-11 22:07:19 +0000 |
commit | b79ff9a30db8d3975296e0b1fe8978691f774694 (patch) | |
tree | d7e60241b428cfa595a3f0e0d467ee67548c9488 /sys/netinet/tcp_sack.c | |
parent | 90c1837110aba860c5442bc9151ef6f8e60160a0 (diff) | |
download | FreeBSD-src-b79ff9a30db8d3975296e0b1fe8978691f774694.zip FreeBSD-src-b79ff9a30db8d3975296e0b1fe8978691f774694.tar.gz |
Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() and
TCPSTAT_INC(), rather than directly manipulating the fields across the
kernel. This will make it easier to change the implementation of
these statistics, such as using per-CPU versions of the data structures.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/tcp_sack.c')
-rw-r--r-- | sys/netinet/tcp_sack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c index f4998af..29bf50c 100644 --- a/sys/netinet/tcp_sack.c +++ b/sys/netinet/tcp_sack.c @@ -260,7 +260,7 @@ tcp_sackhole_alloc(struct tcpcb *tp, tcp_seq start, tcp_seq end) if (tp->snd_numholes >= V_tcp_sack_maxholes || V_tcp_sack_globalholes >= V_tcp_sack_globalmaxholes) { - V_tcpstat.tcps_sack_sboverflow++; + TCPSTAT_INC(tcps_sack_sboverflow); return NULL; } |