From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171]) by dpdk.org (Postfix) with ESMTP id 564FA568F for ; Thu, 4 Feb 2016 08:27:39 +0100 (CET) Received: by mail-pf0-f171.google.com with SMTP id n128so35470995pfn.3 for ; Wed, 03 Feb 2016 23:27:39 -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=oSdweD4nSLN2hUO4CLGJRY15hz8q3+wpzthkdRUb6t8=; b=hJgTHUAfrekurzON2JhwJpGuJXbCphDMuZY6Zq7/jg1AALKVZKoPxDwbXNVvBvt4en q32UEL3qdAWuTyly5edQ4/nzZb86hSelxI4v33cRNyG8/dvIUN+EDQ9LY5VFekcvglK2 so1Y5+DzhBfAtkwAOdotSGxSrSHh3dhHYfmIRJgAeJrNqYocxMphEG4dcyM7c9BgPjui vNM915VVkemY9YYr+NngBSvnZybizuO6RVh5YU33ba8JdaeFkAc41GUbVak4ROWvqOF0 obEjoPRhcTMyIWuepIwfks3h7/a+p5BmhPenSbajzyNSFtHgA+S+y+deQNButZDpgDXZ 1i+g== 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=oSdweD4nSLN2hUO4CLGJRY15hz8q3+wpzthkdRUb6t8=; b=ZRdxopZ4b5l7Dd7sX0hNnx0rByaEt7kdD5nI72qUW2ZD77lDGq9hXJ3FkqfwDlcQlz jz7bqS3UGWeSXAcVixWi0DU7qXdhyJ0j77zSeURT9y9eQ/Kl0A7T2r2Tmlto9e87xpFZ 14zRRiNuf/2kfcWS9dPUiXexNQtcPmtvKpiEAeLMr/ltUrpbwaZnWyY5O3M1dOVnQIcW /Bhh5i6D6sa5A4tPfxPZIPPlDonJ7cpwYQMGWHHTQIyBd6JRmmSwdxz6MpcIK7xdTeO6 MuONhcdUfapUv4Q4ex91SmT7yMq1QbmtErEln/5THmraQEhm+heN+veoAuz7UxNxL+pS q/mw== X-Gm-Message-State: AG10YOQ/KKAbXTtsa69f2qky06ERXagw4L0r7yNhv2FoCxQPXtYsPRZpTJvo6rE3CvH+WQ== X-Received: by 10.66.90.166 with SMTP id bx6mr8898885pab.75.1454570858677; Wed, 03 Feb 2016 23:27:38 -0800 (PST) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id yx4sm1123838pac.5.2016.02.03.23.27.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 23:27:37 -0800 (PST) From: Tetsuya Mukawa To: dev@dpdk.org, ferruh.yigit@intel.com Date: Thu, 4 Feb 2016 16:26:29 +0900 Message-Id: <1454570791-19131-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448355603-21275-2-git-send-email-mukawa@igel.co.jp> References: <1448355603-21275-2-git-send-email-mukawa@igel.co.jp> Cc: ann.zhuangyanying@huawei.com, yuanhan.liu@intel.com Subject: [dpdk-dev] [PATCH v7 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: Thu, 04 Feb 2016 07:27:39 -0000 The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. 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 config/common_linuxapp | 6 + doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_2_3.rst | 3 + drivers/net/Makefile | 4 + drivers/net/vhost/Makefile | 62 ++ drivers/net/vhost/rte_eth_vhost.c | 898 ++++++++++++++++++++++++++++ drivers/net/vhost/rte_eth_vhost.h | 109 ++++ drivers/net/vhost/rte_pmd_vhost_version.map | 11 + lib/librte_ether/rte_ethdev.h | 2 + mk/rte.app.mk | 6 + 10 files changed, 1102 insertions(+) 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