diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2021-12-20 15:59:11 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2021-12-20 15:59:11 +0000 |
commit | 30e42e456d6df328420de84fe07366e2edf7a1cd (patch) | |
tree | 3d444eda21441a3cc106e39f2e58679ae3a4a0aa /sys/netinet6 | |
parent | 51b217bfc57215cefe203cedd8bc9a96965ebb04 (diff) |
Use per-CPU counters for tunnel descriptor block (TDB) statistics.
'tdb_data' struct became unused and was removed.
Tested by Hrvoje Popovski.
ok bluhm@
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index ac28becd3e9..c7f2fec20bb 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.263 2021/12/03 17:18:34 bluhm Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.264 2021/12/20 15:59:10 mvs Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -2875,7 +2875,7 @@ ip6_output_ipsec_send(struct tdb *tdb, struct mbuf *m, struct route_in6 *ro, rtableid, transportmode); if (error) { ipsecstat_inc(ipsec_odrops); - tdb->tdb_odrops++; + tdbstat_inc(tdb, tdb_odrops); m_freem(m); return error; } @@ -2897,7 +2897,7 @@ ip6_output_ipsec_send(struct tdb *tdb, struct mbuf *m, struct route_in6 *ro, error = ipsp_process_packet(m, tdb, AF_INET6, tunalready); if (error) { ipsecstat_inc(ipsec_odrops); - tdb->tdb_odrops++; + tdbstat_inc(tdb, tdb_odrops); } if (ip_mtudisc && error == EMSGSIZE) ip6_output_ipsec_pmtu_update(tdb, ro, &dst, ifidx, rtableid, 0); |