From: Huawei Xie Date: Wed, 8 Oct 2014 18:54:46 +0000 (+0800) Subject: vhost: move internal structure X-Git-Tag: spdx-start~10300 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c19dc7db157fb12b44d9565c92fce7f812f0a250;p=dpdk.git 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 --- 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. */