From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 217FE4C6E for ; Tue, 5 Aug 2014 17:55:46 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 05 Aug 2014 08:51:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="368244760" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 05 Aug 2014 08:55:18 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id s75Fw8n9012314 for ; Tue, 5 Aug 2014 23:58:08 +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 s75Fw6uI024081 for ; Tue, 5 Aug 2014 23:58:08 +0800 Received: (from hxie5@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id s75Fw6DC024077 for dev@dpdk.org; Tue, 5 Aug 2014 23:58:06 +0800 From: Huawei Xie To: dev@dpdk.org Date: Tue, 5 Aug 2014 23:58:03 +0800 Message-Id: <1407254286-23972-1-git-send-email-huawei.xie@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH 0/3] vhost example based on user space vhost library. 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, 05 Aug 2014 15:55:47 -0000 This vhost example implements a simple vswitch using DPDK user space vhost library(lib/librte_vhost) and VMDQ to demonstrate vhost's performance. - Each virtio device is bound to a VMDQ pool and each pool is assigned the mac/vlan of the virtio device. - Packets arriving at a pool after l2 classifier will be moved to the virtio device. - Packets whose destination is a local virtio device will be delivered either by a)software switching mode b)hardware l2 switch. - zero copy is supported and could be configured through command line. Huawei Xie (3): remove old vhost example add lib/librte_vhost support in mk/rte.app.mk add new vhost example 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 | 1101 +++++++++++++------------- 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 | 147 ---- mk/rte.app.mk | 5 + 12 files changed, 585 insertions(+), 2706 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 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 -- 1.8.1.4