]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci.h
net/virtio: do not re-enter clean up routines
[dpdk.git] / drivers / net / virtio / virtio_pci.h
index 64ba6ecbca9dbe2556565618b338294f0f449f42..e961a58ca625482ae463a82213d1c2416b3b8cea 100644 (file)
@@ -231,7 +231,7 @@ struct virtio_hw {
        uint64_t    req_guest_features;
        uint64_t    guest_features;
        uint32_t    max_queue_pairs;
-       uint16_t    started;
+       bool        started;
        uint16_t        max_mtu;
        uint16_t    vtnet_hdr_size;
        uint8_t     vlan_strip;
@@ -257,6 +257,7 @@ struct virtio_hw {
         */
        rte_spinlock_t state_lock;
        struct rte_mbuf **inject_pkts;
+       bool        opened;
 
        struct virtqueue **vqs;
 };