numam-dpdk/drivers/net/mlx5/windows
Michael Baum dcbaafdc8f net/mlx5: fix sibling device config check
The MLX5 net driver supports "probe again". In probing again, it
creates a new ethdev under an existing infiniband device context.

Sibling devices sharing infiniband device context should have compatible
configurations, so some of the devargs given in the probe again, the
ones that are mainly relevant to the sharing device context are sent to
the mlx5_dev_check_sibling_config function which makes sure that they
compatible its siblings.
However, the arguments are adjusted according to the capability of the
device, and the function compares the arguments of the probe again
before the adjustment with the arguments of the siblings after the
adjustment. A user who sends the same values to all siblings may fail in
this comparison if he requested something that the device does not
support and adjusted.

This patch moves the call to the mlx5_dev_check_sibling_config function
after the relevant adjustments.

Fixes: 92d5dd4834 ("net/mlx5: check sibling device configurations mismatch")
Fixes: 2d241515eb ("net/mlx5: add devarg for extensive metadata support")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-02-21 11:36:32 +01:00
..
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mlx5_ethdev_os.c net/mlx5: support imissed counter on Windows 2022-01-06 10:07:59 +01:00
mlx5_flow_os.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
mlx5_flow_os.h net/mlx5: support VLAN stripping offload on Windows 2021-10-12 15:29:38 +02:00
mlx5_mp_os.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx5_os.c net/mlx5: fix sibling device config check 2022-02-21 11:36:32 +01:00
mlx5_os.h net/mlx5: fix tunneling support query 2021-10-12 15:29:34 +02:00
mlx5_vlan_os.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00