virtio: remove unused adapter_stopped field
[dpdk.git] / lib / librte_pmd_virtio / virtio_ethdev.c
index 6688ac7..22a9186 100644 (file)
@@ -271,20 +271,17 @@ int virtio_dev_queue_setup(struct rte_eth_dev *dev,
                        dev->data->port_id, queue_idx);
                vq = rte_zmalloc(vq_name, sizeof(struct virtqueue) +
                        vq_size * sizeof(struct vq_desc_extra), CACHE_LINE_SIZE);
-               memcpy(vq->vq_name, vq_name, sizeof(vq->vq_name));
        } else if (queue_type == VTNET_TQ) {
                snprintf(vq_name, sizeof(vq_name), "port%d_tvq%d",
                        dev->data->port_id, queue_idx);
                vq = rte_zmalloc(vq_name, sizeof(struct virtqueue) +
                        vq_size * sizeof(struct vq_desc_extra), CACHE_LINE_SIZE);
-               memcpy(vq->vq_name, vq_name, sizeof(vq->vq_name));
        } else if (queue_type == VTNET_CQ) {
                snprintf(vq_name, sizeof(vq_name), "port%d_cvq",
                        dev->data->port_id);
                vq = rte_zmalloc(vq_name, sizeof(struct virtqueue) +
                        vq_size * sizeof(struct vq_desc_extra),
                        CACHE_LINE_SIZE);
-               memcpy(vq->vq_name, vq_name, sizeof(vq->vq_name));
        }
        if (vq == NULL) {
                PMD_INIT_LOG(ERR, "%s: Can not allocate virtqueue", __func__);
@@ -955,8 +952,6 @@ virtio_dev_start(struct rte_eth_dev *dev)
        /* Tell the host we've known how to drive the device. */
        vtpci_set_status(hw, VIRTIO_CONFIG_STATUS_DRIVER);
 
-       hw->adapter_stopped = 0;
-
        virtio_dev_cq_start(dev);
 
        /* Do final configuration before rx/tx engine starts */