net/mlx5e: Add support to klm_umr_wqe
authorBen Ben-Ishay <benishay@nvidia.com>
Tue, 14 Jul 2020 11:40:32 +0000 (14:40 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 27 Oct 2021 02:30:39 +0000 (19:30 -0700)
commitd7b896acbdcb3ef5dab1fd2f33ba5a8da6ba1dda
tree5d8fe25c51b483e1fd56237fefa2eb54585f72e2
parenteaee12f046924eeb1210c7e4f3b326603ff1bd85
net/mlx5e: Add support to klm_umr_wqe

This commit adds the needed definitions for using the klm_umr_wqe.
UMR stands for user-mode memory registration, is a mechanism to alter
address translation properties of MKEY by posting WorkQueueElement
aka WQE on send queue.
MKEY stands for memory key, MKEY are used to describe a region in memory that
can be later used by HW.
KLM stands for {Key, Length, MemVa}, KLM_MKEY is indirect MKEY that enables
to map multiple memory spaces with different sizes in unified MKEY.
klm_umr_wqe is a UMR that use to update a KLM_MKEY.
SHAMPO feature uses KLM_MKEY for memory registration of his header buffer.

Signed-off-by: Ben Ben-Ishay <benishay@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
include/linux/mlx5/device.h