summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgbe
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2015-08-19 15:40:03 +0000
committernp <np@FreeBSD.org>2015-08-19 15:40:03 +0000
commitdce57e4e03d65b7eaacc12cbeb2068eb667097f3 (patch)
treeb079a46b3a282d6fcd97c15c0a852f662cdc5488 /sys/dev/cxgbe
parent95d9fae2fd8e37faa32c935f500ec9788e0ef8d9 (diff)
downloadFreeBSD-src-dce57e4e03d65b7eaacc12cbeb2068eb667097f3.zip
FreeBSD-src-dce57e4e03d65b7eaacc12cbeb2068eb667097f3.tar.gz
cxgbe(4): Save the flags for the last adapter-wide synchronized
operation that was initiated successfully. (The caller and thread are already recorded). MFC after: 1 week
Diffstat (limited to 'sys/dev/cxgbe')
-rw-r--r--sys/dev/cxgbe/adapter.h1
-rw-r--r--sys/dev/cxgbe/t4_main.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h
index 9390c51..23a9efe 100644
--- a/sys/dev/cxgbe/adapter.h
+++ b/sys/dev/cxgbe/adapter.h
@@ -808,6 +808,7 @@ struct adapter {
#ifdef INVARIANTS
const char *last_op;
const void *last_op_thr;
+ int last_op_flags;
#endif
int sc_do_rxcopy;
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index 442643e..53fcfbb 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -1149,6 +1149,7 @@ cxgbe_detach(device_t dev)
#ifdef INVARIANTS
sc->last_op = "t4detach";
sc->last_op_thr = curthread;
+ sc->last_op_flags = 0;
#endif
ADAPTER_UNLOCK(sc);
@@ -3165,6 +3166,7 @@ begin_synchronized_op(struct adapter *sc, struct port_info *pi, int flags,
#ifdef INVARIANTS
sc->last_op = wmesg;
sc->last_op_thr = curthread;
+ sc->last_op_flags = flags;
#endif
done:
OpenPOWER on IntegriCloud