From c19dc7db157fb12b44d9565c92fce7f812f0a250 Mon Sep 17 00:00:00 2001 From: Huawei Xie Date: Thu, 9 Oct 2014 02:54:46 +0800 Subject: [PATCH] vhost: move internal structure The structure virtio_net_config_ll 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 Acked-by: Changchun Ouyang --- 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 f3509aa401..b06436eecb 100644 --- a/lib/librte_vhost/rte_virtio_net.h +++ b/lib/librte_vhost/rte_virtio_net.h @@ -87,15 +87,6 @@ struct virtio_net uint32_t flags; /* Device flags. Only used to check if device is running on data core. */ } __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. */ diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 4f11b28787..ee37a401be 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. */ -- 2.20.1