aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2016-09-19 17:16:51 +0000
committerNavdeep Parhar <np@FreeBSD.org>2016-09-19 17:16:51 +0000
commit0459a175eb9100a9cd4b5d7800ac547ac8dec358 (patch)
tree30e6334fba3b96a57694b91c18b3e94df7190b05 /sys/dev
parent10cc720c25e10b22b089906816270d3400941c4c (diff)
downloadsrc-0459a175eb9100a9cd4b5d7800ac547ac8dec358.tar.gz
src-0459a175eb9100a9cd4b5d7800ac547ac8dec358.zip
cxgbe(4): Fixes to wrq stats.
- Increment tx_wrs_copied in the correct place. - Add tx_wrs_sspace to the sysctl MIB. Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=305985
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cxgbe/t4_sge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c
index 7d37ca48c533..adf19f581261 100644
--- a/sys/dev/cxgbe/t4_sge.c
+++ b/sys/dev/cxgbe/t4_sge.c
@@ -1902,6 +1902,7 @@ drain_wrq_wr_list(struct adapter *sc, struct sge_wrq *wrq)
}
eq->pidx = n - (eq->sidx - eq->pidx);
}
+ wrq->tx_wrs_copied++;
if (available < eq->sidx / 4 &&
atomic_cmpset_int(&eq->equiq, 0, 1)) {
@@ -3561,6 +3562,8 @@ alloc_wrq(struct adapter *sc, struct vi_info *vi, struct sge_wrq *wrq,
&wrq->tx_wrs_direct, "# of work requests (direct)");
SYSCTL_ADD_UQUAD(ctx, children, OID_AUTO, "tx_wrs_copied", CTLFLAG_RD,
&wrq->tx_wrs_copied, "# of work requests (copied)");
+ SYSCTL_ADD_UQUAD(ctx, children, OID_AUTO, "tx_wrs_sspace", CTLFLAG_RD,
+ &wrq->tx_wrs_ss, "# of work requests (copied from scratch space)");
return (rc);
}