mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
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
This commit is contained in:
parent
507a9c432b
commit
2bd1e600e3
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue