vdpa/mlx5: Mark vq state for modification in hw vq
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 25 Dec 2023 15:12:00 +0000 (17:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jan 2024 18:01:38 +0000 (13:01 -0500)
commit60c43b3f6b4eb5a3d672952a0d65991f414ea258
treef2689a69f81eab35c08ba626718fd80ed85dbbf3
parent9b23417825df470e4c9e98e7ed4b2c37465bfa1e
vdpa/mlx5: Mark vq state for modification in hw vq

.set_vq_state will set the indices and mark the fields to be modified in
the hw vq.

Advertise that the device supports changing the vq state when the device
is in DRIVER_OK state and suspended.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20231225151203.152687-6-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c
include/linux/mlx5/mlx5_ifc_vdpa.h