OSDN Git Service

vdpa/mlx5: Report max device capabilities
authorEli Cohen <elic@nvidia.com>
Wed, 5 Jan 2022 11:46:43 +0000 (13:46 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 Jan 2022 23:50:54 +0000 (18:50 -0500)
commit79de65edf8891725616f4992cee5d5963900f07a
treed106dac25e0a78dc95a090abf244f89b57eac8c3
parentcd2629f6df1cab5b3df34705ae7f3bde6147fce3
vdpa/mlx5: Report max device capabilities

Configure max supported virtqueues and features on the management
device.
This info can be retrieved using:

$ vdpa mgmtdev show
auxiliary/mlx5_core.sf.1:
  supported_classes net
  max_supported_vqs 257
  dev_features CSUM GUEST_CSUM MTU HOST_TSO4 HOST_TSO6 STATUS CTRL_VQ MQ \
               CTRL_MAC_ADDR VERSION_1 ACCESS_PLATFORM

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20220105114646.577224-12-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Si-Wei Liu<si-wei.liu@oracle.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c