vdpa/mlx5: Allow modifying multiple vq fields in one modify command
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 25 Dec 2023 15:11:57 +0000 (17:11 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jan 2024 18:01:37 +0000 (13:01 -0500)
commit651cdaa9c028b1edf0897e10f560fed4f4fb1fb6
treeb3b7058d7ef629391c813460d36d9908b34a767e
parentef067191f73cce3ee192e991ce486d95524655d5
vdpa/mlx5: Allow modifying multiple vq fields in one modify command

Add a bitmask variable that tracks hw vq field changes that
are supposed to be modified on next hw vq change command.

This will be useful to set multiple vq fields when resuming the vq.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20231225151203.152687-3-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c