common/mlx5: fix mkey attributes initialization
authorShiri Kuzin <shirik@nvidia.com>
Fri, 7 May 2021 07:01:22 +0000 (10:01 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 9 May 2021 07:06:31 +0000 (09:06 +0200)
commit9f39076b71a8f6526e8da0612f365ef2c682efe0
tree95beeaf98cc765da050709705e6b55f933ca9190
parent07415c3ce610123a6c8bceaf1e6180a9dd1f3d02
common/mlx5: fix mkey attributes initialization

The crypto driver added new fields to the mkey attributes struct:
crypto_en and set_remote_rw.

The entire mkey struct was not initialized, only specific fields in it,
which caused the new added fields not to be initialized resulting in a
mkey creation error.

This is fixed by initializing the entire mkey attributes struct to 0
which will prevent this issue from reoccurring if any fields are added
to the mkey struct in the future.

Fixes: 0111a74e13dd ("common/mlx5: adjust DevX mkey fields for crypto")

Signed-off-by: Shiri Kuzin <shirik@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/windows/mlx5_common_os.c
drivers/net/mlx5/mlx5_flow.c
drivers/vdpa/mlx5/mlx5_vdpa_lm.c
drivers/vdpa/mlx5/mlx5_vdpa_mem.c