[dpdk-dev] [PATCH v6 12/25] lib/librte_vhost: move virtio_net_config_ll structure to virtio_net.c
Huawei Xie
huawei.xie at intel.com
Wed Oct 8 20:54:46 CEST 2014
This structure is moved to virtio_net.c. It is related to internal virtio device management,
so it should not be exposed to other files.
Signed-off-by: Huawei Xie <huawei.xie at intel.com>
---
lib/librte_vhost/rte_virtio_net.h | 9 ---------
lib/librte_vhost/virtio-net.c | 8 ++++++++
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h
index f3509aa..b06436e 100644
--- a/lib/librte_vhost/rte_virtio_net.h
+++ b/lib/librte_vhost/rte_virtio_net.h
@@ -88,15 +88,6 @@ struct virtio_net
} __rte_cache_aligned;
/*
- * Device linked list structure for configuration.
- */
-struct virtio_net_config_ll
-{
- struct virtio_net dev; /* Virtio device. */
- struct virtio_net_config_ll *next; /* Next entry on linked list. */
-};
-
-/*
* Information relating to memory regions including offsets to addresses in QEMUs memory file.
*/
struct virtio_memory_regions {
diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c
index 4f11b28..ee37a40 100644
--- a/lib/librte_vhost/virtio-net.c
+++ b/lib/librte_vhost/virtio-net.c
@@ -53,6 +53,14 @@
#include "vhost-net-cdev.h"
#include "eventfd_link/eventfd_link.h"
+/**
+ * Device linked list structure for configuration.
+ */
+struct virtio_net_config_ll {
+ struct virtio_net dev; /* Virtio device. */
+ struct virtio_net_config_ll *next; /* Next entry on linked list. */
+};
+
const char eventfd_cdev[] = "/dev/eventfd-link";
/* device ops to add/remove device to data core. */
--
1.8.1.4
More information about the dev
mailing list