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
This commit is contained in:
Navdeep Parhar 2015-08-19 15:40:03 +00:00
parent d83272a486
commit 8faf57012b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286926
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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: