vhost: remove unused virtqueue field
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 Mar 2021 09:02:17 +0000 (10:02 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 05:48:32 +0000 (07:48 +0200)
This patch removes the "backend" field of the
vhost_virtqueue struct, which is not used by the
library.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Tested-by: Balazs Nemeth <bnemeth@redhat.com>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h

index 52ab93d..5a7c0c6 100644 (file)
@@ -558,8 +558,6 @@ init_vring_queue(struct virtio_net *dev, uint32_t vring_idx)
        vq->notif_enable = VIRTIO_UNINITIALIZED_NOTIF;
 
        vhost_user_iotlb_init(dev, vring_idx);
-       /* Backends are set to -1 indicating an inactive device. */
-       vq->backend = -1;
 }
 
 static void
index 658f6fc..717f410 100644 (file)
@@ -143,8 +143,6 @@ struct vhost_virtqueue {
 #define VIRTIO_INVALID_EVENTFD         (-1)
 #define VIRTIO_UNINITIALIZED_EVENTFD   (-2)
 
-       /* Backend value to determine if device should started/stopped */
-       int                     backend;
        int                     enabled;
        int                     access_ok;
        int                     ready;