From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by dpdk.org (Postfix) with ESMTP id 79FD58D9F for ; Mon, 2 Nov 2015 04:59:13 +0100 (CET) Received: by pacfv9 with SMTP id fv9so140247106pac.3 for ; Sun, 01 Nov 2015 19:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel_co_jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jnTFWxc3EXuX9tUxCV+D+jr7+SJhgW8mzN58vMliBMM=; b=Cs+PEclT1BmBvZ33yr537hGutbuQLc3GT0b3eM2FZKYGqpyD0J3FdAgTlSWxguhhta hiGP/HHkhzs+ZyAZZU9E9C2CKT+msaMhrl1wQdQwfdJeqoSaWFktKLa/1TNssDnMDMPV jZvuLXTBSdpmxnrvOAAFofLyHcY7SbuURXWOeZIxv8IUoXwB7VETwRBoi3QMouW8Qwfo 8B1Ux5kXcPMk+NZKQ6X5PsMMzISdxqQEOAs3haHZ2e+NYc4kiZElVya3iu9Jfbbcsd6p myw1rdWB2TcgwmiaP76Ycmv9q4qtV81yAV+CI1a/pWFyVamsGKIDYTvRi7Ab6WBoMigI Wfsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jnTFWxc3EXuX9tUxCV+D+jr7+SJhgW8mzN58vMliBMM=; b=GqclHgmr3Gym27NNyuwt++vLfXiPMlNhV1ALqB8rQ1BU16jmo7dQ4m/6fheyfDrgvY gcS5DSfGQG+xahb/NEFToH1961GjhSQv4VEFRjetbvFLNPlMfKERR5m11jGohEQgaU2O ptQoqpDsJckL+C9M7otU5ll6rGyssNlF6AYjXZbPxGhEP7w9X38CpedRh3ryaZms8tLj kllci5CyZttwywdIzG16nP1Yj5mtvTuYzmQ5ZgQ4sWMYIubJmh/XPZqlZ+6YGRjarCt3 VQUCQe+YutauIZq0nYqYgDiwVLUSF1rz7KV6SwwvomSmmBOtlRnHL+TpJWMDbuH9CIeU sJJA== X-Gm-Message-State: ALoCoQl6MjW2awlDB4ekQv/9V4uJeRUl4QNqhC1SnzuERKIomh6+qGx1HFQhxSXOo1vpkRIc/H8Y X-Received: by 10.66.148.164 with SMTP id tt4mr23893772pab.150.1446436752440; Sun, 01 Nov 2015 19:59:12 -0800 (PST) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id d7sm4808772pas.31.2015.11.01.19.59.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Nov 2015 19:59:11 -0800 (PST) From: Tetsuya Mukawa To: dev@dpdk.org Date: Mon, 2 Nov 2015 12:58:55 +0900 Message-Id: <1446436737-25606-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445926375-18986-4-git-send-email-mukawa@igel.co.jp> References: <1445926375-18986-4-git-send-email-mukawa@igel.co.jp> Cc: ann.zhuangyanying@huawei.com Subject: [dpdk-dev] [PATCH v2 0/2] Add VHOST PMD 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: Mon, 02 Nov 2015 03:59:14 -0000 The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. The patch will work on below patch series. - [PATCH v7 00/28] remove pci driver from vdevs * Known issue. We may see issues while handling RESET_OWNER message. These handlings are done in vhost library, so not a part of vhost PMD. So far, we are waiting for QEMU fixing. 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 (2): vhost: Add callback and private data for vhost PMD vhost: Add VHOST PMD config/common_linuxapp | 6 + doc/guides/nics/index.rst | 1 + doc/guides/nics/vhost.rst | 82 +++ 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 | 765 ++++++++++++++++++++++++++ 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 | 56 +- lib/librte_vhost/virtio-net.h | 4 +- mk/rte.app.mk | 8 +- 15 files changed, 1072 insertions(+), 13 deletions(-) create mode 100644 doc/guides/nics/vhost.rst 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