]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: Fix wrong use of bit numbers
authorEli Cohen <elic@nvidia.com>
Thu, 8 Apr 2021 09:10:46 +0000 (12:10 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 9 Apr 2021 16:08:27 +0000 (12:08 -0400)
commitda76cf5508c48219d9431b2b2c87b1d227b86895
tree03de024620006bc0e0510b1de235028a525a8353
parentb64031b9bd801b6da2c03938e04b9141002a3419
vdpa/mlx5: Fix wrong use of bit numbers

VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask
conditionals.

Also, in mlx5_vdpa_is_little_endian() use BIT_ULL for consistency with
the rest of the code.

Fixes: 707e0f8d9b65 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210408091047.4269-5-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c