Author: hselasky
Date: Sun Jun  9 08:22:38 2019
New Revision: 348832
URL: https://svnweb.freebsd.org/changeset/base/348832

Log:
  MFC r348603:
  Make sure the DMA tags get freed in mlx5en(4).
  
  Sponsored by: Mellanox Technologies

Modified:
  stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c       Sun Jun  9 08:19:45 
2019        (r348831)
+++ stable/10/sys/dev/mlx5/mlx5_en/mlx5_en_main.c       Sun Jun  9 08:22:38 
2019        (r348832)
@@ -772,6 +772,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
@@ -1098,6 +1099,7 @@ mlx5e_destroy_sq(struct mlx5e_sq *sq)
        }
        if (sq->br != NULL)
                buf_ring_free(sq->br, M_MLX5EN);
+       bus_dma_tag_destroy(sq->dma_tag);
 }
 
 int
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to