Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 17:16:51 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305985 - head/sys/dev/cxgbe
Message-ID:  <201609191716.u8JHGpRR059831@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609191716.u8JHGpRR059831>