Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2017 21:06:08 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323600 - head/sys/dev/cxgbe/crypto
Message-ID:  <201709142106.v8EL68He011816@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Sep 14 21:06:08 2017
New Revision: 323600
URL: https://svnweb.freebsd.org/changeset/base/323600

Log:
  Fix some incorrect sysctl pointers for some error stats.
  
  The bad_session, sglist_error, and process_error sysctl nodes were
  returning the value of the pad_error node instead of the appropriate
  error counters.
  
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/dev/cxgbe/crypto/t4_crypto.c

Modified: head/sys/dev/cxgbe/crypto/t4_crypto.c
==============================================================================
--- head/sys/dev/cxgbe/crypto/t4_crypto.c	Thu Sep 14 20:42:19 2017	(r323599)
+++ head/sys/dev/cxgbe/crypto/t4_crypto.c	Thu Sep 14 21:06:08 2017	(r323600)
@@ -1483,11 +1483,12 @@ ccr_sysctls(struct ccr_softc *sc)
 	SYSCTL_ADD_U64(ctx, children, OID_AUTO, "pad_error", CTLFLAG_RD,
 	    &sc->stats_pad_error, 0, "Padding errors");
 	SYSCTL_ADD_U64(ctx, children, OID_AUTO, "bad_session", CTLFLAG_RD,
-	    &sc->stats_pad_error, 0, "Requests with invalid session ID");
+	    &sc->stats_bad_session, 0, "Requests with invalid session ID");
 	SYSCTL_ADD_U64(ctx, children, OID_AUTO, "sglist_error", CTLFLAG_RD,
-	    &sc->stats_pad_error, 0, "Requests for which DMA mapping failed");
+	    &sc->stats_sglist_error, 0,
+	    "Requests for which DMA mapping failed");
 	SYSCTL_ADD_U64(ctx, children, OID_AUTO, "process_error", CTLFLAG_RD,
-	    &sc->stats_pad_error, 0, "Requests failed during queueing");
+	    &sc->stats_process_error, 0, "Requests failed during queueing");
 }
 
 static int



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