Make sure the DMA tags get freed in mlx5en(4).
MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
51a1c26a18
commit
76a3555808
@ -1331,6 +1331,7 @@ mlx5e_destroy_rq(struct mlx5e_rq *rq)
|
||||
}
|
||||
free(rq->mbuf, M_MLX5EN);
|
||||
mlx5_wq_destroy(&rq->wq_ctrl);
|
||||
bus_dma_tag_destroy(rq->dma_tag);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -1655,6 +1656,7 @@ mlx5e_destroy_sq(struct mlx5e_sq *sq)
|
||||
mlx5e_free_sq_db(sq);
|
||||
mlx5_wq_destroy(&sq->wq_ctrl);
|
||||
mlx5_unmap_free_uar(sq->priv->mdev, &sq->uar);
|
||||
bus_dma_tag_destroy(sq->dma_tag);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -156,6 +156,7 @@ mlx5e_rl_destroy_sq(struct mlx5e_sq *sq)
|
||||
|
||||
mlx5e_free_sq_db(sq);
|
||||
mlx5_wq_destroy(&sq->wq_ctrl);
|
||||
bus_dma_tag_destroy(sq->dma_tag);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user