vdpa/mlx5: support Sub-Function
authorThomas Monjalon <thomas@monjalon.net>
Wed, 21 Jul 2021 14:37:40 +0000 (22:37 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Jul 2021 22:11:14 +0000 (00:11 +0200)
commitcf8a8a8f4896c0885d3996716f73513c4317e545
tree97fb23ce1ec1d0a505b43359cd00947592221bf2
parentd599bf8209a8ed51bb45f848e4c49e7eac4cc982
vdpa/mlx5: support Sub-Function

RoCE disabling requirement is based on PCI address.
In order to support Sub-Function, a conversion is needed
in the case of an auxiliary device.

SF device can be probed with such devargs string:
  auxiliary:mlx5_core.sf.<id>,class=vdpa

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/vdpadevs/mlx5.rst
drivers/vdpa/mlx5/mlx5_vdpa.c