From: Michael Baum:
> The mlx5_vdpa_event_qp_create function makes shifting to the numeric
> constant 1, then multiplies it by another constant and finally assigns it
> into a
> uint64_t variable.
>
> The numeric constant type is an int with a 32-bit sign. if after shifting ,
> its MSB
> (bit of sign) will change, the uint64 variable will get into it a different
> value
> than what the function intended it to get.
>
> Set the numeric constant 1 to be uint64_t in the first place.
>
> Fixes: 8395927cdfaf ("vdpa/mlx5: prepare HW queues")
> Cc: [email protected]
>
> Signed-off-by: Michael Baum <[email protected]>
Acked-by: Matan Azrad <[email protected]>
- [dpdk-dev] [PATCH 1/4] regex/mlx5: fix size of setup const... Michael Baum
- [dpdk-dev] [PATCH 2/4] compress/mlx5: fix constant si... Michael Baum
- Re: [dpdk-dev] [PATCH 2/4] compress/mlx5: fix con... Matan Azrad
- Re: [dpdk-dev] [dpdk-stable] [PATCH 2/4] compress... Thomas Monjalon
- Re: [dpdk-dev] [dpdk-stable] [PATCH 2/4] comp... Michael Baum
- [dpdk-dev] [PATCH 3/4] vdpa/mlx5: fix constant type i... Michael Baum
- Re: [dpdk-dev] [PATCH 3/4] vdpa/mlx5: fix constan... Matan Azrad
- [dpdk-dev] [PATCH 4/4] net/mlx5: fix constant type in... Michael Baum
- Re: [dpdk-dev] [PATCH 1/4] regex/mlx5: fix size of se... Matan Azrad
- [dpdk-dev] [PATCH v2 1/4] regex/mlx5: fix size of set... Michael Baum
- [dpdk-dev] [PATCH v2 2/4] compress/mlx5: fix cons... Michael Baum
- [dpdk-dev] [PATCH v2 3/4] vdpa/mlx5: fix constant... Michael Baum
- [dpdk-dev] [PATCH v2 4/4] net/mlx5: fix constant ... Michael Baum

