Thread (15 messages) 15 messages, 3 authors, 2021-07-22

Re: [dpdk-dev] [PATCH 3/4] vdpa/mlx5: fix constant type in QP creation

From: Matan Azrad <hidden>
Date: 2021-06-07 07:29:15


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: stable@dpdk.org

Signed-off-by: Michael Baum <redacted>
Acked-by: Matan Azrad <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help