net/mlx5: support list of representor PF
authorXueming Li <xuemingl@nvidia.com>
Sun, 28 Mar 2021 13:48:11 +0000 (13:48 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:16:30 +0000 (09:16 +0200)
commit08c2772fc7476efaed612b41e67eb43d604a68e6
treeaa9fe5f1454d9a28b938d9e3baf1096e44264ca4
parentf926cce3fa94298cdbed88c6bb37adfd0ca87a54
net/mlx5: support list of representor PF

To probe representors from different kernel bonding PFs, had to specify
2 separate devargs like this:
    -a 03:00.0,representor=pf0vf[0-3] -a 03:00.0,representor=pf1vf[0-3]

This patch supports range or list of PF section in devargs, so the
alternative short devargs of above is:
    -a 03:00.0,representor=pf[0-1]vf[0-3]

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/linux/mlx5_os.c