From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id DD92F5584 for ; Tue, 15 Mar 2016 09:31:50 +0100 (CET) Received: by mail-pf0-f182.google.com with SMTP id u190so19429334pfb.3 for ; Tue, 15 Mar 2016 01:31:50 -0700 (PDT) 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=afL22g9an8wqwO+CqFJZt2nV+5rZaWELUHlamCb3kis=; b=RgSlj5QHDQUebpwoAsDUB3CE5MbzYqGWyIW7jJVMcx+8c+YsE4ZK+fIFEeqfctENkJ fKA9k9trz0uLfhElE6Bpwa/sMz3bBgYCTbdlscYW0UTWHrZpA1FOt1fz8gXPfEEWtUOx soAwplIrXUXuGxolETbqQTUmhjNFkmN6f1FYF00Sypz/6v5pHcKFlU/8HSaBPx52RLt3 WQ3xkJTLqCykJ11zVNMq4tZ05FAkj7EmAmd4/S+ln3qg4VRPbSk5y/Z08TnowCAUQiCY u4w3ijccWsWqIoyDmrH56PXlZlV+TDrNL1mhtkHr66iY+h6vfaS+JY2cTBcJifuf7Qd0 G7pw== 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=afL22g9an8wqwO+CqFJZt2nV+5rZaWELUHlamCb3kis=; b=TJcMPkPEZte+/LTqLJPCtTNTzfcf98K4QjScazsTfBDaoKlm6XyQY6AdpDhvYqqlJA rKGo1IdBWmvChNwT5Rd+1SoEYMfKobutI9sUefu86gYesgVMLnKRK1EmiNh67RAKp0At Ciqh9SGRg1+Qcao9Eq8NnBRg8UjSPE9rUr4E1360Z7hc2KapJkbwOJWVgcSRifLU+D6V rUhui+TPVCdo1BlECs/y8M6ARe3PstsGc9SR/vs3PC+7urcWlSYOmsayzd9d+7rHoWcZ MW9wWl2RWxyVoALjuu57Aw21IuQMC9elEDbgd8OdPw3CHAF4g5t3fKptahM9RTyGVu/W A7CQ== X-Gm-Message-State: AD7BkJIYTke/9rDNPuwnQAQEW41310pZWVt5GkS/nv5lGIc/talteCghMzHcLYt3Yu+tfw== X-Received: by 10.67.30.163 with SMTP id kf3mr44825139pad.45.1458030710335; Tue, 15 Mar 2016 01:31:50 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id ta2sm37627696pab.42.2016.03.15.01.31.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Mar 2016 01:31:49 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org, bruce.richardson@intel.com Cc: ann.zhuangyanying@huawei.com, Tetsuya Mukawa Date: Tue, 15 Mar 2016 17:31:39 +0900 Message-Id: <1458030701-11487-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1457316434-19128-3-git-send-email-mukawa@igel.co.jp> References: <1457316434-19128-3-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v12 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: Tue, 15 Mar 2016 08:31:51 -0000 The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. PATCH v12 changes: - Rebase on latest master. - Add a missing documentation. PATCH v11 changes: - Rebase on latest master. - Fix MAINTAINERS file. - Fix Acked-by and Tested-by signatures of commit log. PATCH v10 changes: - Rebase on latest master. - Fix DPDK version number(2.3 to 16.04) - Set port id to mbuf while receiving packets. PATCH v9 changes: - Fix a null pointer access issue implemented in v8 patch. PATCH v8 changes: - Manage ether devices list instead of internal structures list. - Remove needless NULL checking. - Replace "pthread_exit" to "return NULL". - Replace rte_panic to RTE_LOG, also add error handling. - Remove duplicated lines. - Remove needless casting. - Follow coding style. - Remove needless parenthesis. PATCH v7 changes: - Remove needless parenthesis. - Add release note. - Remove needless line wraps. - Add null pointer check in vring_state_changed(). - Free queue memory in eth_queue_release(). - Fix wrong variable name. - Fix error handling code of eth_dev_vhost_create() and rte_pmd_vhost_devuninit(). - Remove needless null checking from rte_pmd_vhost_devinit/devuninit(). - Use port id to create mac address. - Add doxygen style comments in "rte_eth_vhost.h". - Fix wrong comment in "mk/rte.app.mk". PATCH v6 changes: - Remove rte_vhost_driver_pmd_callback_registe(). - Support link status interrupt. - Support queue state changed interrupt. - Add rte_eth_vhost_get_queue_event(). - Support numa node detection when new device is connected. 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 (2): ethdev: Add a new event type to notify a queue state changed event vhost: Add VHOST PMD MAINTAINERS | 5 + config/common_base | 6 + config/common_linuxapp | 1 + doc/guides/nics/index.rst | 1 + doc/guides/nics/vhost.rst | 110 ++++ doc/guides/rel_notes/release_16_04.rst | 5 + drivers/net/Makefile | 4 + drivers/net/vhost/Makefile | 62 ++ drivers/net/vhost/rte_eth_vhost.c | 916 ++++++++++++++++++++++++++++ drivers/net/vhost/rte_eth_vhost.h | 109 ++++ drivers/net/vhost/rte_pmd_vhost_version.map | 10 + lib/librte_ether/rte_ethdev.h | 2 + mk/rte.app.mk | 6 + 13 files changed, 1237 insertions(+) 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