[dpdk-dev,v6,12/25] lib/librte_vhost: move virtio_net_config_ll structure to virtio_net.c
Commit Message
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@intel.com>
---
lib/librte_vhost/rte_virtio_net.h | 9 ---------
lib/librte_vhost/virtio-net.c | 8 ++++++++
2 files changed, 8 insertions(+), 9 deletions(-)
@@ -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 {
@@ -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. */