mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
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:
parent
b4d11915c7
commit
2a2aec721f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue