net/mlx5: probe host PF representor with sub-function
authorXueming Li <xuemingl@nvidia.com>
Sun, 28 Mar 2021 13:48:15 +0000 (13:48 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 31 Mar 2021 07:16:39 +0000 (09:16 +0200)
commit91766fae2b7c76530ac0a52f5992db25edbeb92f
tree832609ad9e63079bc575cea3940522a9f2bfd81e
parent7ed15acdcd69334c730c70b202ba1a882968f7de
net/mlx5: probe host PF representor with sub-function

To simplify BlueField HPF representor(vf[-1]) probe, this patch allows
probe it with "sf" syntax: "sf[-1]".

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