Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/43078/?format=api
http://patches.dpdk.org/api/patches/43078/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180713170644.9306-5-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20180713170644.9306-5-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20180713170644.9306-5-stephen@networkplumber.org", "date": "2018-07-13T17:06:44", "name": "[v12,4/4] net/netvsc: add documentation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ec1e42bb4ede2b415988a748d9eb7487296e1837", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180713170644.9306-5-stephen@networkplumber.org/mbox/", "series": [ { "id": 577, "url": "http://patches.dpdk.org/api/series/577/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=577", "date": "2018-07-13T17:06:40", "name": "Hyper-V netvsc PMD and VMBus", "version": 12, "mbox": "http://patches.dpdk.org/series/577/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/43078/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/43078/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 67D662C2F;\n\tFri, 13 Jul 2018 19:06:57 +0200 (CEST)", "from mail-pg1-f196.google.com (mail-pg1-f196.google.com\n\t[209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 49FA12BE2\n\tfor <dev@dpdk.org>; Fri, 13 Jul 2018 19:06:53 +0200 (CEST)", "by mail-pg1-f196.google.com with SMTP id p23-v6so5040492pgv.13\n\tfor <dev@dpdk.org>; Fri, 13 Jul 2018 10:06:53 -0700 (PDT)", "from xeon-e3.wavecable.com (204-195-22-127.wavecable.com.\n\t[204.195.22.127]) by smtp.gmail.com with ESMTPSA id\n\tr28-v6sm27960150pfd.37.2018.07.13.10.06.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 13 Jul 2018 10:06:51 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=ZLPqz5RalqzvgDnJampBpeLkQOYNp60i55XNeGVmYbE=;\n\tb=hk4NMO9p+Z5cXdebnhOroOzFQuL0PhOUT0W4ZIlQOaIlVlPfXjYNth1GSZgcWkZNJL\n\tZnwdT0FNck95TMATOXdpoRbeMUW8or4lHl+5eyOTaIuvjascPSVxE0meZhAxkVlFYkKE\n\tnWOorYEAXBo5KF9zGsvUDMVu7p3dep4yOX3r7gz9da0KI3X2L7vQ4Ca/faFrQ6M80ztz\n\t8VJVNjwnA1ATcKm9WD/6ZenJS/zli+JJ3hzQxV46j11vsUQcqWB0rdMVL9mcavLmOMSo\n\taAQOs8rLKlkpVA1TWBQZKGQIf0F4+rvM9mxKzu6Xyq/US86IAKgRTQGUKs2zB0QIqY0n\n\tfKiA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=ZLPqz5RalqzvgDnJampBpeLkQOYNp60i55XNeGVmYbE=;\n\tb=cHG/FW6WEArBEk4kuZ4K6AL4oroM/8n4imYpnxBrbQtAL39y9879usYcOtP4K8HY+s\n\ts15oQbtzwoZxQCja0Q+HTXOvGmpW9Y69OEuZU8X0Lm418ylqoW2XxDj272U6nEgej95M\n\tW/phtDT394moXGMhsFPYy8DYRMcgh9ZhD4J7RFGWnvX5Ci9KuvrEdqyuemtaVe6hRU/x\n\tlp1liR3cekkP6/5ssmvLD984YvXaImg7kJ7eufhP5Nt5Sw2/nbpzo/5SXu8UXA6WFD0j\n\t3rJ/kOMO/u7NKgpghY8GO3O7RvE5dBVRhD1xwg384qTEtVc5aSOikmT2eQ9CHZS/XcJ8\n\t1LTw==", "X-Gm-Message-State": "AOUpUlHvmk3EPrOvsnjPopUBqhrXgtFH61iE+qy1JwUGIQsLhWXU9x9M\n\tJ3BEfiuoMhR3vVX1SfxC4QwTJ2Tdbe8=", "X-Google-Smtp-Source": "AAOMgpfwMOQDvSe3t9zsOLQPW5aqxtGJ0BqnHs/9vKaBrY5AGbVWjxPxGJojWlzBFx+HoEWcVIF0Wg==", "X-Received": "by 2002:a63:710d:: with SMTP id\n\tm13-v6mr6883620pgc.66.1531501612041; \n\tFri, 13 Jul 2018 10:06:52 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <sthemmin@microsoft.com>", "Date": "Fri, 13 Jul 2018 10:06:44 -0700", "Message-Id": "<20180713170644.9306-5-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20180713170644.9306-1-stephen@networkplumber.org>", "References": "<20180713170644.9306-1-stephen@networkplumber.org>", "Subject": "[dpdk-dev] [PATCH v12 4/4] net/netvsc: add documentation", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Stephen Hemminger <sthemmin@microsoft.com>\n\nMatching documentation for new netvsc device.\nIncludes a brief note about the restart issue.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n doc/guides/nics/features/netvsc.ini | 23 ++++++\n doc/guides/nics/index.rst | 1 +\n doc/guides/nics/netvsc.rst | 101 +++++++++++++++++++++++++\n doc/guides/rel_notes/known_issues.rst | 20 +++++\n doc/guides/rel_notes/release_18_08.rst | 6 ++\n 5 files changed, 151 insertions(+)\n create mode 100644 doc/guides/nics/features/netvsc.ini\n create mode 100644 doc/guides/nics/netvsc.rst", "diff": "diff --git a/doc/guides/nics/features/netvsc.ini b/doc/guides/nics/features/netvsc.ini\nnew file mode 100644\nindex 000000000000..2ff6042bf47b\n--- /dev/null\n+++ b/doc/guides/nics/features/netvsc.ini\n@@ -0,0 +1,23 @@\n+;\n+; Supported features of the 'netvsc' network poll mode driver.\n+;\n+; Refer to default.ini for the full list of available PMD features.\n+;\n+[Features]\n+Speed capabilities = P\n+Link status = Y\n+Queue start/stop = Y\n+Scattered Rx = Y\n+Promiscuous mode = Y\n+Allmulticast mode = Y\n+Basic stats = Y\n+Stats per queue = Y\n+Extended stats = Y\n+Multiprocess aware = Y\n+Other kdrv = Y\n+ARMv7 = Y\n+ARMv8 = Y\n+x86-32 = Y\n+x86-64 = Y\n+Usage doc = Y\n+MTU update = Y\ndiff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst\nindex d68c5ed5ea1a..e9e7f74ce7ff 100644\n--- a/doc/guides/nics/index.rst\n+++ b/doc/guides/nics/index.rst\n@@ -33,6 +33,7 @@ Network Interface Controller Drivers\n mlx4\n mlx5\n mvpp2\n+ netvsc\n nfp\n octeontx\n qede\ndiff --git a/doc/guides/nics/netvsc.rst b/doc/guides/nics/netvsc.rst\nnew file mode 100644\nindex 000000000000..0f033e3a3d63\n--- /dev/null\n+++ b/doc/guides/nics/netvsc.rst\n@@ -0,0 +1,101 @@\n+.. SPDX-License-Identifier: BSD-3-Clause\n+ Copyright(c) Microsoft Corporation.\n+\n+Netvsc poll mode driver\n+=======================\n+\n+The Netvsc Poll Mode driver (PMD) provides support for the paravirtualized\n+network device for Microsoft Hyper-V. It can be used with\n+Window Server 2008/2012/2016, Windows 10 and Azure cloud.\n+The device offers multi-queue support (if kernel and host support it),\n+checksum and segmentation offloads.\n+\n+\n+Features and Limitations of Hyper-V PMD\n+---------------------------------------\n+\n+In this release, the hyper PMD driver provides the basic functionality of packet reception and transmission.\n+\n+* It supports merge-able buffers per packet when receiving packets and scattered buffer per packet\n+ when transmitting packets. The packet size supported is from 64 to 65536.\n+\n+* The PMD supports multicast packets and promiscuous mode subject to restrictions on the host.\n+ In order to this to work, the guest network configuration on Hyper-V must be configured to allow MAC address\n+ spoofing. This option is not available on Azure.\n+\n+* The device has only a single MAC address.\n+ Hyper-V driver does not support MAC or VLAN filtering because the Hyper-V host does not support it.\n+\n+* VLAN tags are always stripped and presented in mbuf tci field.\n+\n+* The Hyper-V driver does not use or support Link State or Rx interrupt.\n+\n+* The maximum number of queues is limited by the host (currently 64).\n+ When used with 4.16 kernel only a single queue is available.\n+\n+* This driver is intended for use with synthetic path only.\n+ Accelerated Networking (SR-IOV) acceleration is not supported yet.\n+ Use the VDEV_NETVSC device for accelerated networking instead.\n+\n+\n+Installation\n+------------\n+\n+The Netvsc PMD is a standalone driver, similar to virtio and vmxnet3.\n+Using Netvsc PMD requires that the associated VMBUS device be bound to the userspace\n+I/O device driver for Hyper-V (uio_hv_generic). By default, all netvsc devices\n+will be bound to the Linux kernel driver; in order to use netvsc PMD the\n+device must first be overridden.\n+\n+The first step is to identify the network device to override.\n+VMBUS uses Universal Unique Identifiers\n+(`UUID`_) to identify devices on the bus similar to how PCI uses Domain:Bus:Function.\n+The UUID associated with a Linux kernel network device can be determined\n+by looking at the sysfs information. To find the UUID for eth1 and\n+store it in a shell variable:\n+\n+ .. code-block:: console\n+\n+\tDEV_UUID=$(basename $(readlink /sys/class/net/eth1/device))\n+\n+\n+.. _`UUID`: https://en.wikipedia.org/wiki/Universally_unique_identifier\n+\n+There are several possible ways to assign the uio device driver for a device.\n+The easiest way (but only on 4.18 or later)\n+is to use the `driverctl Device Driver control utility`_ to override\n+the normal kernel device.\n+\n+ .. code-block:: console\n+\n+\tdriverctl -b vmbus set-override $DEV_UUID uio_hv_generic\n+\n+.. _`driverctl Device Driver control utility`: https://gitlab.com/driverctl/driverctl\n+\n+Any settings done with driverctl are by default persistent and will be reapplied\n+on reboot.\n+\n+On older kernels, the same effect can be had by manual sysfs bind and unbind\n+operations:\n+\n+ .. code-block:: console\n+\n+\tNET_UUID=\"f8615163-df3e-46c5-913f-f2d2f965ed0e\"\n+\tmodprobe uio_hv_generic\n+\techo $NET_UUID > /sys/bus/vmbus/drivers/uio_hv_generic/new_id\n+\techo $DEV_UUID > /sys/bus/vmbus/drivers/hv_netvsc/unbind\n+\techo $DEV_UUID > /sys/bus/vmbus/drivers/uio_hv_generic/bind\n+\n+.. Note::\n+\n+ The dpkd-devbind.py script should not be used. It only handles PCI devices.\n+\n+\n+Prerequisites\n+-------------\n+\n+The following prerequisites apply:\n+\n+* Linux kernel support for UIO on vmbus is done with the uio_hv_generic driver.\n+ Full support of multiple queues requires the 4.17 kernel. It is possible\n+ to use the netvsc PMD with 4.16 kernel but it is limited to a single queue.\ndiff --git a/doc/guides/rel_notes/known_issues.rst b/doc/guides/rel_notes/known_issues.rst\nindex 716bd7360949..95e4ce693e45 100644\n--- a/doc/guides/rel_notes/known_issues.rst\n+++ b/doc/guides/rel_notes/known_issues.rst\n@@ -739,3 +739,23 @@ Linux kernel 4.10.0 iommu attribute read error\n \n **Driver/Module**:\n ``vfio-pci`` module.\n+\n+Netvsc driver and application restart\n+-------------------------------------\n+\n+**Description**:\n+ The Linux kernel uio_hv_generic driver does not completely shutdown and clean up\n+ resources properly if application using Netvsc PMD exits.\n+\n+**Implication**:\n+ When application using Netvsc PMD is restarted it can not complete initialization\n+ handshake sequence with the host.\n+\n+**Resolution/Workaround**:\n+ Either reboot the guest or remove and reinsert the hv_uio_generic module.\n+\n+**Affected Environment/Platform**:\n+ Linux Hyper-V.\n+\n+**Driver/Module**:\n+ ``uio_hv_generic`` module.\ndiff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst\nindex 1274c9210c0c..e4a041a46d2f 100644\n--- a/doc/guides/rel_notes/release_18_08.rst\n+++ b/doc/guides/rel_notes/release_18_08.rst\n@@ -68,6 +68,12 @@ New Features\n * Add handlers to add/delete VxLAN port number.\n * Add devarg to specify ingress VLAN rewrite mode.\n \n+* **Added support for Hyper-V netvsc PMD.**\n+\n+ The new ``netvsc`` poll mode driver provides native support for\n+ networking on Hyper-V. See the :doc:`../nics/netvsc` NIC driver guide\n+ for more details on this new driver.\n+\n \n API Changes\n -----------\n", "prefixes": [ "v12", "4/4" ] }{ "id": 43078, "url": "