]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5_core: Use coherent memory for command interface page
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 2 Apr 2015 14:07:25 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:41 +0000 (16:33 -0400)
commita28409fe00625c059b37f2fe555e4a5fe222979e
tree0c43aa2340bb22ffed7e145ddfb8f649f3f4af80
parent1aa7d0d5538c36158325872e3b9ec562e57aa321
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>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
include/linux/mlx5/driver.h