Destroy port stats debug context in correct order in mlx5en(4).
Destroy children nodes before parent nodes. MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
d67cf46eed
commit
529eb49cd0
@ -1063,6 +1063,10 @@ mlx5e_ethtool_debug_stats(SYSCTL_HANDLER_ARGS)
|
||||
int error;
|
||||
|
||||
PRIV_LOCK(priv);
|
||||
if (priv->gone != 0) {
|
||||
error = ENODEV;
|
||||
goto done;
|
||||
}
|
||||
sys_debug = priv->sysctl_debug;
|
||||
error = sysctl_handle_int(oidp, &sys_debug, 0, req);
|
||||
if (error != 0 || !req->newptr)
|
||||
|
@ -4089,9 +4089,9 @@ mlx5e_destroy_ifp(struct mlx5_core_dev *mdev, void *vpriv)
|
||||
/* destroy all remaining sysctl nodes */
|
||||
sysctl_ctx_free(&priv->stats.vport.ctx);
|
||||
sysctl_ctx_free(&priv->stats.pport.ctx);
|
||||
sysctl_ctx_free(&priv->sysctl_ctx);
|
||||
if (priv->sysctl_debug)
|
||||
sysctl_ctx_free(&priv->stats.port_stats_debug.ctx);
|
||||
sysctl_ctx_free(&priv->sysctl_ctx);
|
||||
|
||||
mlx5_core_destroy_mkey(priv->mdev, &priv->mr);
|
||||
mlx5_dealloc_transport_domain(priv->mdev, priv->tdn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user