forked from luck/tmp_suning_uos_patched
net/mlx4_en: Move filters cleanup to a proper location
Filters cleanup should be done once before destroying net device,
since filters list is contained in the private data.
Fixes: 1eb8c695bd
('net/mlx4_en: Add accelerated RFS support')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c74bfbdba0
commit
30f56e3ced
|
@ -2080,6 +2080,10 @@ void mlx4_en_destroy_netdev(struct net_device *dev)
|
|||
mdev->upper[priv->port] = NULL;
|
||||
mutex_unlock(&mdev->state_lock);
|
||||
|
||||
#ifdef CONFIG_RFS_ACCEL
|
||||
mlx4_en_cleanup_filters(priv);
|
||||
#endif
|
||||
|
||||
mlx4_en_free_resources(priv);
|
||||
|
||||
kfree(priv->tx_ring);
|
||||
|
|
|
@ -514,9 +514,6 @@ void mlx4_en_destroy_rx_ring(struct mlx4_en_priv *priv,
|
|||
ring->rx_info = NULL;
|
||||
kfree(ring);
|
||||
*pring = NULL;
|
||||
#ifdef CONFIG_RFS_ACCEL
|
||||
mlx4_en_cleanup_filters(priv);
|
||||
#endif
|
||||
}
|
||||
|
||||
void mlx4_en_deactivate_rx_ring(struct mlx4_en_priv *priv,
|
||||
|
|
Loading…
Reference in New Issue
Block a user