summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorIlya Lesokhin <ilyal@mellanox.com>2017-11-14 10:30:55 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2018-05-29 17:27:50 -0700
commitba869ee0e0f53077f58ce43a9381b4ee0a20cdd6 (patch)
tree7091b8eea41e8f90a9f7cb3588c96386c89e48ab /drivers/net/ethernet/mellanox
parent90275d809ab982a7fdc1f2ed5b0fe3e4c55a5257 (diff)
downloadtalos-obmc-linux-ba869ee0e0f53077f58ce43a9381b4ee0a20cdd6.tar.gz
talos-obmc-linux-ba869ee0e0f53077f58ce43a9381b4ee0a20cdd6.zip
net/mlx5: FPGA, Properly initialize dma direction on fpga conn send
Properly initialize dma direction on fpga conn send. Do not rely on dma_dir == 0 (DMA_BIDIRECTIONAL). Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c b/drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
index 4e5a5cf25f17..bf84678b21d6 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
@@ -181,6 +181,7 @@ int mlx5_fpga_conn_send(struct mlx5_fpga_conn *conn,
if (!conn->qp.active)
return -ENOTCONN;
+ buf->dma_dir = DMA_TO_DEVICE;
err = mlx5_fpga_conn_map_buf(conn, buf);
if (err)
return err;
OpenPOWER on IntegriCloud