From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huawei Xie Subject: [PATCH v6 12/25] lib/librte_vhost: move virtio_net_config_ll structure to virtio_net.c Date: Thu, 9 Oct 2014 02:54:46 +0800 Message-ID: <1412794499-4332-13-git-send-email-huawei.xie@intel.com> References: <1412794499-4332-1-git-send-email-huawei.xie@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1412794499-4332-1-git-send-email-huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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 --- 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