[dpdk-dev] [PATCH] common/mlx5: fix mkey attributes initialization
Raslan Darawsheh
rasland at nvidia.com
Sun May 9 10:21:48 CEST 2021
Hi,
> -----Original Message-----
> From: Shiri Kuzin <shirik at nvidia.com>
> Sent: Friday, May 7, 2021 10:01 AM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>
> Subject: [PATCH] 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 sturct in the future.
>
> Fixes: 0111a74e13dd ("common/mlx5: adjust DevX mkey fields for crypto")
>
> Signed-off-by: Shiri Kuzin <shirik at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> ---
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list