Date: Sun, 9 Jun 2019 08:19:45 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r348831 - stable/12/sys/dev/mlx5/mlx5_en Message-ID: <201906090819.x598JjpM005929@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Sun Jun 9 08:19:45 2019 New Revision: 348831 URL: https://svnweb.freebsd.org/changeset/base/348831 Log: MFC r348603: Make sure the DMA tags get freed in mlx5en(4). Sponsored by: Mellanox Technologies Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c ============================================================================== --- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Sun Jun 9 08:18:24 2019 (r348830) +++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Sun Jun 9 08:19:45 2019 (r348831) @@ -1330,6 +1330,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 @@ -1654,6 +1655,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 Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c ============================================================================== --- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c Sun Jun 9 08:18:24 2019 (r348830) +++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c Sun Jun 9 08:19:45 2019 (r348831) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906090819.x598JjpM005929>