diff options
| author | Jason Wang | 2021-09-03 11:10:21 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2021-09-04 23:34:05 +0200 |
| commit | 499c8b4de96eecc554a03e452226f79f169a233b (patch) | |
| tree | 25f4cb41a7df313ae1128ffc9e1b8aa181ba86a8 | |
| parent | vhost-vdpa: fix the wrong assertion in vhost_vdpa_init() (diff) | |
| download | qemu-499c8b4de96eecc554a03e452226f79f169a233b.tar.gz qemu-499c8b4de96eecc554a03e452226f79f169a233b.tar.xz qemu-499c8b4de96eecc554a03e452226f79f169a233b.zip | |
vhost-vdpa: remove the unncessary queue_index assignment
The queue_index of NetClientState should be assigned in set_netdev()
afterwards, so trying to net_vhost_vdpa_init() is meaningless. This
patch removes this.
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20210903091031.47303-12-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| -rw-r--r-- | net/vhost-vdpa.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index d02cad9855..912686457c 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -165,7 +165,6 @@ static int net_vhost_vdpa_init(NetClientState *peer, const char *device, assert(name); nc = qemu_new_net_client(&net_vhost_vdpa_info, peer, device, name); snprintf(nc->info_str, sizeof(nc->info_str), TYPE_VHOST_VDPA); - nc->queue_index = 0; s = DO_UPCAST(VhostVDPAState, nc, nc); vdpa_device_fd = qemu_open_old(vhostdev, O_RDWR); if (vdpa_device_fd == -1) { |
