svn commit: r298760 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Fri Apr 29 01:51:29 UTC 2016
Author: adrian
Date: Fri Apr 29 01:51:27 2016
New Revision: 298760
URL: https://svnweb.freebsd.org/changeset/base/298760
Log:
[ath] Add counters for STBC TX and LDPC TX.
This is a big no-op until the TX path changes to enable LDPC TX are
added.
Modified:
head/sys/dev/ath/if_ath_sysctl.c
head/sys/dev/ath/if_athioctl.h
Modified: head/sys/dev/ath/if_ath_sysctl.c
==============================================================================
--- head/sys/dev/ath/if_ath_sysctl.c Thu Apr 28 22:14:09 2016 (r298759)
+++ head/sys/dev/ath/if_ath_sysctl.c Fri Apr 29 01:51:27 2016 (r298760)
@@ -1285,6 +1285,12 @@ ath_sysctl_stats_attach(struct ath_softc
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_stbc",
CTLFLAG_RD, &sc->sc_stats.ast_rx_stbc, 0,
"Number of STBC frames received");
+ SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_stbc",
+ CTLFLAG_RD, &sc->sc_stats.ast_tx_stbc, 0,
+ "Number of STBC frames transmitted");
+ SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ldpc",
+ CTLFLAG_RD, &sc->sc_stats.ast_tx_ldpc, 0,
+ "Number of LDPC frames transmitted");
/* Attach the RX phy error array */
ath_sysctl_stats_attach_rxphyerr(sc, child);
Modified: head/sys/dev/ath/if_athioctl.h
==============================================================================
--- head/sys/dev/ath/if_athioctl.h Thu Apr 28 22:14:09 2016 (r298759)
+++ head/sys/dev/ath/if_athioctl.h Fri Apr 29 01:51:27 2016 (r298760)
@@ -166,7 +166,9 @@ struct ath_stats {
u_int32_t ast_tx_node_psq_overflow;
u_int32_t ast_rx_stbc; /* RX STBC frame */
u_int32_t ast_tx_nodeq_overflow; /* node sw queue overflow */
- u_int32_t ast_pad[12];
+ u_int32_t ast_tx_ldpc; /* TX LDPC frame */
+ u_int32_t ast_tx_stbc; /* TX STBC frame */
+ u_int32_t ast_pad[10];
};
#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)
More information about the svn-src-head
mailing list