Make sure the DMA tags get freed in mlx5en(4).

MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-06-04 08:06:51 +00:00
parent 51a1c26a18
commit 76a3555808
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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