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

Navdeep Parhar np at FreeBSD.org
Wed Sep 21 00:46:09 UTC 2016


Author: np
Date: Wed Sep 21 00:46:08 2016
New Revision: 306062
URL: https://svnweb.freebsd.org/changeset/base/306062

Log:
  cxgbe(4): Show wcwr_stats for T6 cards.

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

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Wed Sep 21 00:08:42 2016	(r306061)
+++ head/sys/dev/cxgbe/t4_main.c	Wed Sep 21 00:46:08 2016	(r306062)
@@ -5093,7 +5093,7 @@ t4_sysctls(struct adapter *sc)
 	    CTLTYPE_STRING | CTLFLAG_RD, sc, 0,
 	    sysctl_ulprx_la, "A", "ULPRX logic analyzer");
 
-	if (is_t5(sc)) {
+	if (chip_id(sc) >= CHELSIO_T5) {
 		SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "wcwr_stats",
 		    CTLTYPE_STRING | CTLFLAG_RD, sc, 0,
 		    sysctl_wcwr_stats, "A", "write combined work requests");


More information about the svn-src-all mailing list