git: 261c616077ac - stable/14 - cxgbe(4): Make sure that the tracing filters are usable after restart.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Oct 2024 18:39:29 UTC
The branch stable/14 has been updated by np:
URL: https://cgit.FreeBSD.org/src/commit/?id=261c616077acf134a5d8117f6e4cffbd5f970a35
commit 261c616077acf134a5d8117f6e4cffbd5f970a35
Author: Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2024-09-11 08:01:38 +0000
Commit: Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-10-21 17:13:47 +0000
cxgbe(4): Make sure that the tracing filters are usable after restart.
The destination queue for tracing filters is destroyed during stop or
suspend and the software state needs to reflect this. A new destination
queue will be setup when the adapter resumes operation.
Sponsored by: Chelsio Communications
(cherry picked from commit d82cb5c608ae9aaced4cb459ca511e62c64dbf74)
---
sys/dev/cxgbe/t4_main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index 4184900780a1..3223d32b5d36 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -2091,6 +2091,11 @@ stop_lld(struct adapter *sc)
TXQ_UNLOCK(wrq);
quiesce_wrq(wrq);
}
+
+ if (pi->flags & HAS_TRACEQ) {
+ pi->flags &= ~HAS_TRACEQ;
+ sc->traceq = -1;
+ }
}
if (sc->flags & FULL_INIT_DONE) {
/* Firmware event queue */