net/mlx5e: Replace deprecated PCI_DMA_TODEVICE
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Wed, 26 Jun 2019 14:35:29 +0000 (17:35 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Jun 2019 20:53:27 +0000 (22:53 +0200)
The PCI API for DMA is deprecated, and PCI_DMA_TODEVICE is just defined
to DMA_TO_DEVICE for backward compatibility. Just use DMA_TO_DEVICE.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c

index eb8ef78e562610007b7adb9a26aaeb72575ace43..5a900b70b2033c49058ebd22805d9adfc05d2147 100644 (file)
@@ -64,7 +64,7 @@ mlx5e_xmit_xdp_buff(struct mlx5e_xdpsq *sq, struct mlx5e_dma_info *di,
                return false;
        xdpi.dma_addr = di->addr + (xdpi.xdpf->data - (void *)xdpi.xdpf);
        dma_sync_single_for_device(sq->pdev, xdpi.dma_addr,
-                                  xdpi.xdpf->len, PCI_DMA_TODEVICE);
+                                  xdpi.xdpf->len, DMA_TO_DEVICE);
        xdpi.di = *di;
 
        return sq->xmit_xdp_frame(sq, &xdpi);