net/mlx5e: Expose memory key creation (mkey) function
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 21 Sep 2022 18:10:50 +0000 (11:10 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 01:01:32 +0000 (18:01 -0700)
commit0e1e03c02f122a9c3be4b4297ee24661ee0b1068
treecf32c97a65999790d512aaf699f0a32df9c2b21a
parent23cc83c6ca87c9a4da62b9ddf4d0fc09f3054f81
net/mlx5e: Expose memory key creation (mkey) function

Expose mlx5e_create_mkey function, for future patches in the
macsec series to use.
The above function creates a memory key which describes a
region in memory that can be later used by both HW and SW.
The counterpart destroy functionality is already exposed.

Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_common.c