git: 6483fc224b1a - main - qat: Free counters during detach
Mark Johnston
markj at FreeBSD.org
Thu Jan 14 16:46:23 UTC 2021
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=6483fc224b1a68528a65c16e9d8e55e2b5535ee9
commit 6483fc224b1a68528a65c16e9d8e55e2b5535ee9
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-01-14 16:41:28 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-01-14 16:41:28 +0000
qat: Free counters during detach
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
---
sys/dev/qat/qat.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/dev/qat/qat.c b/sys/dev/qat/qat.c
index 6f74ff3b4bc1..1e533d1bebcc 100644
--- a/sys/dev/qat/qat.c
+++ b/sys/dev/qat/qat.c
@@ -1611,6 +1611,11 @@ qat_crypto_deinit(struct qat_softc *sc)
struct qat_crypto_bank *qcb;
int bank;
+ counter_u64_free(sc->sc_sym_alloc_failures);
+ counter_u64_free(sc->sc_ring_full_restarts);
+ counter_u64_free(sc->sc_gcm_aad_updates);
+ counter_u64_free(sc->sc_gcm_aad_restarts);
+
if (qcy->qcy_banks != NULL) {
for (bank = 0; bank < qcy->qcy_num_banks; bank++) {
qcb = &qcy->qcy_banks[bank];
More information about the dev-commits-src-main
mailing list