net/mlx5: Support setting access rights of dma addresses
authorEli Cohen <eli@mellanox.com>
Wed, 15 Jul 2020 04:28:32 +0000 (21:28 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jul 2020 05:21:29 +0000 (22:21 -0700)
commit1dcb6c36a5ebac46099b6363ccf8f4e7563d51e2
tree713adceccd0a841095337eb6a1de6abea1f2c3a4
parent4dca650991e4175b8d5bae7ff6f1637a0c42be4a
net/mlx5: Support setting access rights of dma addresses

mlx5_fill_page_frag_array() is used to populate dma addresses to
resources that require it, such as QPs, RQs etc. When the resource is
used, PA list permissions are ignored. For resources that use MTT list,
the user is required to provide the access rights. Subsequent patches
use resources that require MTT lists, so modify API and implementation
to support that.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/alloc.c
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h