summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorEli Cohen2015-04-02 16:07:25 +0200
committerDavid S. Miller2015-04-02 22:33:41 +0200
commit64599cca51de08cef94bc13a0f98351e5bb01f41 (patch)
tree0c43aa2340bb22ffed7e145ddfb8f649f3f4af80 /include/linux/mlx5
parentnet/mlx5_core: Use the right inbox struct in destroy mkey command (diff)
downloadkernel-qcow2-linux-64599cca51de08cef94bc13a0f98351e5bb01f41.tar.gz
kernel-qcow2-linux-64599cca51de08cef94bc13a0f98351e5bb01f41.tar.xz
kernel-qcow2-linux-64599cca51de08cef94bc13a0f98351e5bb01f41.zip
net/mlx5_core: Use coherent memory for command interface page
Use coherent memory for the commands descriptor page. Take measures to make sure the page is aligned to MLX5_ADAPTER_PAGE_SIZE as required by the hardware. Reported-by: Yevgeny Kliteynik <kliteyn@mellanox.com> Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 166d9315fe4b..8d8ca6d9b03b 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -232,6 +232,9 @@ struct mlx5_cmd_stats {
};
struct mlx5_cmd {
+ void *cmd_alloc_buf;
+ dma_addr_t alloc_dma;
+ int alloc_size;
void *cmd_buf;
dma_addr_t dma;
u16 cmdif_rev;