diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2022-10-12 14:28:10 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-11-30 06:09:45 +0100 |
commit | 7c11eae2fdc8ff429b74f6f9cd91ebea9725d917 (patch) | |
tree | 263d64a3bab530dcf4ec737e31187928ea276ebc /drivers | |
parent | net/mlx5e: Don't use termination table when redundant (diff) | |
download | linux-7c11eae2fdc8ff429b74f6f9cd91ebea9725d917.tar.xz linux-7c11eae2fdc8ff429b74f6f9cd91ebea9725d917.zip |
net/mlx5e: Don't access directly DMA device pointer
Use specialized helper to fetch DMA device pointer.
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c index f900709639f6..7d5a27f7423f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c @@ -186,7 +186,7 @@ static int mlx5e_macsec_aso_reg_mr(struct mlx5_core_dev *mdev, struct mlx5e_macs return err; } - dma_device = &mdev->pdev->dev; + dma_device = mlx5_core_dma_dev(mdev); dma_addr = dma_map_single(dma_device, umr->ctx, sizeof(umr->ctx), DMA_BIDIRECTIONAL); err = dma_mapping_error(dma_device, dma_addr); if (err) { |