[dpdk-dev] [PATCH 7/8] virtio: remove unused adapter_stopped field

Stephen Hemminger stephen at networkplumber.org
Sat Jun 14 03:06:24 CEST 2014


This flag was set to zero (but was already zero)
and never used.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

--- a/lib/librte_pmd_virtio/virtio_ethdev.c	2014-06-13 18:01:14.152978473 -0700
+++ b/lib/librte_pmd_virtio/virtio_ethdev.c	2014-06-13 18:01:14.144978461 -0700
@@ -927,8 +927,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 */
--- a/lib/librte_pmd_virtio/virtio_pci.h	2014-06-13 18:01:14.152978473 -0700
+++ b/lib/librte_pmd_virtio/virtio_pci.h	2014-06-13 18:01:40.537011579 -0700
@@ -178,7 +178,6 @@ struct virtio_hw {
 	uint16_t    subsystem_vendor_id;
 	uint8_t     revision_id;
 	uint8_t     mac_addr[ETHER_ADDR_LEN];
-	int         adapter_stopped;
 };
 
 /*



More information about the dev mailing list