From 6ee36ead584b29dc242f79d36f622429a6d4a89b Mon Sep 17 00:00:00 2001 From: Huawei Xie Date: Mon, 23 Feb 2015 17:36:24 +0000 Subject: [PATCH] vhost: move cuse related handling in a subdirectory Create vhost_cuse directory and move vhost-net-cdev.c into vhost_cuse. vhost-cuse driver will be divided into two parts: cuse driver specific message handling(in cuse directory) and common message handling(in virtio-net.c). vhost ioctl message is pre-processed in cuse and then sent to virtio-net if is not terminated. virtio-net.c provides common message handling for both vhost-cuse and vhost-user. Signed-off-by: Huawei Xie Acked-by: Tetsuya Mukawa --- lib/librte_vhost/Makefile | 4 ++-- lib/librte_vhost/{ => vhost_cuse}/vhost-net-cdev.c | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename lib/librte_vhost/{ => vhost_cuse}/vhost-net-cdev.c (100%) diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile index 369c25a993..49ae7aeb94 100644 --- a/lib/librte_vhost/Makefile +++ b/lib/librte_vhost/Makefile @@ -38,10 +38,10 @@ EXPORT_MAP := rte_vhost_version.map LIBABIVER := 1 -CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse +CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -I vhost_cuse -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y -SRCS-$(CONFIG_RTE_LIBRTE_VHOST) := vhost-net-cdev.c virtio-net.c vhost_rxtx.c +SRCS-$(CONFIG_RTE_LIBRTE_VHOST) := vhost_cuse/vhost-net-cdev.c virtio-net.c vhost_rxtx.c # install includes SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_virtio_net.h diff --git a/lib/librte_vhost/vhost-net-cdev.c b/lib/librte_vhost/vhost_cuse/vhost-net-cdev.c similarity index 100% rename from lib/librte_vhost/vhost-net-cdev.c rename to lib/librte_vhost/vhost_cuse/vhost-net-cdev.c -- 2.20.1