diff options
author | Jason Wang <jasowang@redhat.com> | 2021-04-02 11:05:20 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2021-04-08 17:33:59 +0800 |
commit | f9bb0c1f9862dc959ba84977620fc8267623463e (patch) | |
tree | e709382573ed7ee7851d8e53cd0e318206b34692 /net/vhost-vdpa.c | |
parent | 22317309df52d165c02a20bddfdd710c8deed583 (diff) |
Revert "qapi: net: Add query-netdev command"
Several issues has been reported for query-netdev series. Consider
it's late in the rc, this reverts commit
d32ad10a14d46dfe9304e3ed5858a11dcd5c71a0.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/vhost-vdpa.c')
-rw-r--r-- | net/vhost-vdpa.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 8c27ea0142..fe659ec9e2 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -184,22 +184,8 @@ static int net_vhost_vdpa_init(NetClientState *peer, const char *device, VhostVDPAState *s; int vdpa_device_fd = -1; int ret = 0; - NetdevVhostVDPAOptions *stored; - assert(name); nc = qemu_new_net_client(&net_vhost_vdpa_info, peer, device, name); - - /* Store startup parameters */ - nc->stored_config = g_new0(NetdevInfo, 1); - nc->stored_config->type = NET_BACKEND_VHOST_VDPA; - stored = &nc->stored_config->u.vhost_vdpa; - - stored->has_vhostdev = true; - stored->vhostdev = g_strdup(vhostdev); - - stored->has_queues = true; - stored->queues = 1; /* TODO: change when support multiqueue */ - snprintf(nc->info_str, sizeof(nc->info_str), TYPE_VHOST_VDPA); nc->queue_index = 0; s = DO_UPCAST(VhostVDPAState, nc, nc); |