cxgbe(4): Destroy the tick mutex during VI detach.

This avoids a mutex reinitialization when the VI is detached and
reattached.

Fixes:	516fe911a6 cxgbe(4): Always use the per-VI callout to read interface stats.
Sponsored by:	Chelsio Communications

(cherry picked from commit 8b144c015c9cce0bc99a7fbdc43f22f51a946d2c)
This commit is contained in:
Navdeep Parhar 2023-12-27 13:00:29 -08:00
parent b4d11915c7
commit 2a2aec721f

View file

@ -2733,6 +2733,7 @@ cxgbe_vi_detach(struct vi_info *vi)
#endif
cxgbe_uninit_synchronized(vi);
callout_drain(&vi->tick);
mtx_destroy(&vi->tick_mtx);
sysctl_ctx_free(&vi->ctx);
vi_full_uninit(vi);