svn commit: r305985 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Mon Sep 19 17:16:53 UTC 2016


Author: np
Date: Mon Sep 19 17:16:51 2016
New Revision: 305985
URL: https://svnweb.freebsd.org/changeset/base/305985

Log:
  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

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Mon Sep 19 17:15:01 2016	(r305984)
+++ head/sys/dev/cxgbe/t4_sge.c	Mon Sep 19 17:16:51 2016	(r305985)
@@ -1902,6 +1902,7 @@ drain_wrq_wr_list(struct adapter *sc, st
 			}
 			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_
 	    &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);
 }


More information about the svn-src-all mailing list