net/mlx5: fix LAG representor probing on PF1 PCI
authorXueming Li <xuemingl@nvidia.com>
Mon, 10 May 2021 13:13:42 +0000 (16:13 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 10:17:45 +0000 (12:17 +0200)
commitd31a89719024934cb834ca4ed7f76e8d178cd366
tree022c83791520a8453aa0b79146a58ea361811c1e
parent69b44d6bce1c9990e522a08f693d5f9f2e2e5067
net/mlx5: fix LAG representor probing on PF1 PCI

In case of bonding, orchestrator wants to use same devargs for LAG and
non-LAG scenario to probe representor on PF1 using PF1 PCI address
like "<DBDF_PF1>,representor=pf1vf[0-3]".

This patch changes PCI address check policy to allow PF1 PCI address for
representors on PF1.

Note: detaching PF0 device can't remove representors on PF1. It's
recommended to use primary(PF0) PCI address to probe representors on
both PFs.

Fixes: f926cce3fa94 ("net/mlx5: refactor bonding representor probing")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c