numam-dpdk/drivers/vdpa
Matan Azrad 11e2ed9e43 vdpa/mlx5: fix PCI address comparison
A regular memcmp function was used to compare between two objects of
type `struct rte_pci_addr`.

Due to the alignment rules of compiler structure builders, some memory
is not initiated in the structure even though all the fields were
initiated.

Therefore, the comparison may fail even though the PCI addresses are
identical and to cause false failure in probe.

Use the dedicated API to compare 2 PCI addresses.

Fixes: 75dd0ae917 ("vdpa/mlx5: disable RoCE")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Tested-by: Noa Ezra <noae@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-05-05 15:54:26 +02:00
..
ifc vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
mlx5 vdpa/mlx5: fix PCI address comparison 2020-05-05 15:54:26 +02:00
Makefile vdpa/mlx5: introduce Mellanox vDPA driver 2020-02-05 09:51:21 +01:00
meson.build vdpa/mlx5: introduce Mellanox vDPA driver 2020-02-05 09:51:21 +01:00