vdpa/mlx5: Extend driver support for new features
authorEli Cohen <elic@nvidia.com>
Tue, 21 Mar 2023 11:28:09 +0000 (13:28 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:31 +0000 (03:02 -0400)
commite9d67e59f151eae964f749af74dbe4bd3b01b0d2
treeb26625bcab15a1e8d44b087e0957077e8b91c075
parent791a1cb7b8591ece6a5075dfed803da379e7ecd3
vdpa/mlx5: Extend driver support for new features

Extend the possible list for features that can be supported by firmware.
Note that different versions of firmware may or may not support these
features. The driver is made aware of them by querying the firmware.

While doing this, improve the code so we use enum names instead of hard
coded numerical values.

The new features supported by the driver are the following:

VIRTIO_NET_F_MRG_RXBUF
VIRTIO_NET_F_HOST_ECN
VIRTIO_NET_F_GUEST_ECN
VIRTIO_NET_F_GUEST_TSO6
VIRTIO_NET_F_GUEST_TSO4

Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20230321112809.221432-3-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Eugenio PĂ©rez Martin <eperezma@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c