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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to