From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: [PATCH v5 0/3] Add VHOST PMD Date: Tue, 24 Nov 2015 18:00:00 +0900 Message-ID: <1448355603-21275-1-git-send-email-mukawa@igel.co.jp> References: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> Cc: yuanhan.liu@intel.com, ann.zhuangyanying@huawei.com To: dev@dpdk.org Return-path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 15F7B8E83 for ; Tue, 24 Nov 2015 10:00:25 +0100 (CET) Received: by padhx2 with SMTP id hx2so16117363pad.1 for ; Tue, 24 Nov 2015 01:00:24 -0800 (PST) In-Reply-To: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. PATCH v5 changes: - Rebase on latest master. - Fix RX/TX routine to count RX/TX bytes. - Fix RX/TX routine not to count as error packets if enqueue/dequeue cannot send all packets. - Fix if-condition checking for multiqueues. - Add "static" to pthread variable. - Fix format. - Change default behavior not to receive queueing event from driver. - Split the patch to separate rte_eth_vhost_portid2vdev(). PATCH v4 changes: - Rebase on latest DPDK tree. - Fix cording style. - Fix code not to invoke multiple messaging handling threads. - Fix code to handle vdev parameters correctly. - Remove needless cast. - Remove needless if-condition before rt_free(). PATCH v3 changes: - Rebase on latest matser - Specify correct queue_id in RX/TX function. PATCH v2 changes: - Remove a below patch that fixes vhost library. The patch was applied as a separate patch. - vhost: fix crash with multiqueue enabled - Fix typos. (Thanks to Thomas, Monjalon) - Rebase on latest tree with above bernard's patches. PATCH v1 changes: - Support vhost multiple queues. - Rebase on "remove pci driver from vdevs". - Optimize RX/TX functions. - Fix resource leaks. - Fix compile issue. - Add patch to fix vhost library. RFC PATCH v3 changes: - Optimize performance. In RX/TX functions, change code to access only per core data. - Add below API to allow user to use vhost library APIs for a port managed by vhost PMD. There are a few limitations. See "rte_eth_vhost.h". - rte_eth_vhost_portid2vdev() To support this functionality, vhost library is also changed. Anyway, if users doesn't use vhost PMD, can fully use vhost library APIs. - Add code to support vhost multiple queues. Actually, multiple queues functionality is not enabled so far. RFC PATCH v2 changes: - Fix issues reported by checkpatch.pl (Thanks to Stephen Hemminger) Tetsuya Mukawa (3): vhost: Add callback and private data for vhost PMD vhost: Add VHOST PMD vhost: Add helper function to convert port id to virtio device pointer config/common_linuxapp | 6 + doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_2_2.rst | 2 + drivers/net/Makefile | 4 + drivers/net/vhost/Makefile | 62 ++ drivers/net/vhost/rte_eth_vhost.c | 796 ++++++++++++++++++++++++++ drivers/net/vhost/rte_eth_vhost.h | 65 +++ drivers/net/vhost/rte_pmd_vhost_version.map | 8 + lib/librte_vhost/rte_vhost_version.map | 6 + lib/librte_vhost/rte_virtio_net.h | 3 + lib/librte_vhost/vhost_user/virtio-net-user.c | 13 +- lib/librte_vhost/virtio-net.c | 60 +- lib/librte_vhost/virtio-net.h | 4 +- mk/rte.app.mk | 8 +- 14 files changed, 1024 insertions(+), 14 deletions(-) create mode 100644 drivers/net/vhost/Makefile create mode 100644 drivers/net/vhost/rte_eth_vhost.c create mode 100644 drivers/net/vhost/rte_eth_vhost.h create mode 100644 drivers/net/vhost/rte_pmd_vhost_version.map -- 2.1.4