From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1D9D85947 for ; Tue, 2 Sep 2014 10:51:23 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by orsmga101.jf.intel.com with ESMTP; 02 Sep 2014 01:55:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,447,1406617200"; d="scan'208";a="474586182" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by azsmga001.ch.intel.com with ESMTP; 02 Sep 2014 01:55:34 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id s828tY0U026092 for ; Tue, 2 Sep 2014 16:55:34 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s828tWxB004410 for ; Tue, 2 Sep 2014 16:55:34 +0800 Received: (from hxie5@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id s828tWwZ004406 for dev@dpdk.org; Tue, 2 Sep 2014 16:55:32 +0800 From: Huawei Xie To: dev@dpdk.org Date: Tue, 2 Sep 2014 16:55:28 +0800 Message-Id: <1409648131-4301-1-git-send-email-huawei.xie@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH 0/3] Transform the vhost example to two parts: vhost library and example. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2014 08:51:24 -0000 This transform is to facilitate integration with DPDK accelerated ethernet switch. Huawei Xie (3): remove vhost example vhost library support to facilitate integration with DPDK accelerated vswitch This vhost example is based on vhost library. Besides, - This patch fixes hundreds of 80 character limitation issues. - Use structure assignment rather than memcpy in get_eth_conf according to Stephen's comments. config/common_linuxapp | 7 + examples/vhost/Makefile | 10 +- examples/vhost/eventfd_link/Makefile | 39 - examples/vhost/eventfd_link/eventfd_link.c | 205 --- examples/vhost/eventfd_link/eventfd_link.h | 79 - examples/vhost/libvirt/qemu-wrap.py | 5 +- examples/vhost/main.c | 2205 ++++++++++---------------- examples/vhost/main.h | 85 +- examples/vhost/vhost-net-cdev.c | 367 ----- examples/vhost/vhost-net-cdev.h | 83 - examples/vhost/virtio-net.c | 1165 -------------- examples/vhost/virtio-net.h | 161 -- lib/Makefile | 1 + lib/librte_vhost/Makefile | 48 + lib/librte_vhost/eventfd_link/Makefile | 39 + lib/librte_vhost/eventfd_link/eventfd_link.c | 196 +++ lib/librte_vhost/eventfd_link/eventfd_link.h | 40 + lib/librte_vhost/rte_virtio_net.h | 222 +++ lib/librte_vhost/vhost-net-cdev.c | 394 +++++ lib/librte_vhost/vhost-net-cdev.h | 119 ++ lib/librte_vhost/vhost_rxtx.c | 316 ++++ lib/librte_vhost/virtio-net.c | 1113 +++++++++++++ mk/rte.app.mk | 5 + 23 files changed, 3371 insertions(+), 3533 deletions(-) delete mode 100644 examples/vhost/eventfd_link/Makefile delete mode 100644 examples/vhost/eventfd_link/eventfd_link.c delete mode 100644 examples/vhost/eventfd_link/eventfd_link.h mode change 100755 => 100644 examples/vhost/libvirt/qemu-wrap.py delete mode 100644 examples/vhost/vhost-net-cdev.c delete mode 100644 examples/vhost/vhost-net-cdev.h delete mode 100644 examples/vhost/virtio-net.c delete mode 100644 examples/vhost/virtio-net.h create mode 100644 lib/librte_vhost/Makefile create mode 100644 lib/librte_vhost/eventfd_link/Makefile create mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.c create mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.h create mode 100644 lib/librte_vhost/rte_virtio_net.h create mode 100644 lib/librte_vhost/vhost-net-cdev.c create mode 100644 lib/librte_vhost/vhost-net-cdev.h create mode 100644 lib/librte_vhost/vhost_rxtx.c create mode 100644 lib/librte_vhost/virtio-net.c -- 1.8.1.4