From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 3BB357D01 for ; Wed, 9 May 2018 02:26:09 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id f189so24725582pfa.7 for ; Tue, 08 May 2018 17:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=e4FPaFX4K36Rd8vcJWEFqtMTKxN2vFL36mbNa3DvrsU=; b=JO4zd6VGDjEI7nafuv2IZ1LD/N4w3fzvAf64IKR5gx1NMq3grCpMrVXgOncSKcW4P1 /25bafBy2hqF5wCzOaY0V7hlHCpibEDrofEIayuCorBW8GEO+FDSBwzK1GAhhD7DsaZZ XlbqVae7kyPMrCzAG2VT6UyDmDsnKCJX1C4ktDqkRF4BPHnGN/24VinKQ1njQE3Z6UzL vuMGLfeSvDf8eIr3WihgyKHZcMOp6j/MuAaU6NLKm9IDhXTgEd2IH2Ttn8mz2gQrnayS kx15z57XjP93w8ErlUiUwhlTJCjhqVMAIziDY6/cXr7F2Wfvqgg3xdLwv5kHKyiiBW+x hkYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=e4FPaFX4K36Rd8vcJWEFqtMTKxN2vFL36mbNa3DvrsU=; b=H1kiXI332re+zxaRsXX47iuyJCrbH2EBKsalqfxD3F3ngxc6EG/QBRBS+nUmBy8QI8 D3J1nd7+5GS+ta9IDOJatcqiFJUM02VAu7aNLEMtgBEzyqQbJLWjKWmJP1pRr2xYW1gM OxoDqDaJCGcCEdgBgpeuwCNS0Kc5Saf16a+ME5cgR0C7+b8lLQ9KPwqRv8PS0GcJ4ADK p3bh9zAm1h2cXzIbCP6eogZ+g0TXOmwxZIFMEWXlmPzc3g7grDoGY0LgrWecsQA4Nv+Q FaSOW1aQ9+6D8spCcFuxJ4cOnih5sEcD/yP4Nvmil4ZBxQCC51tjmzM+6hvPOC4KeGsj 7Xmg== X-Gm-Message-State: ALQs6tCcpJzPDZTIi+QQaacyCoDYlDFGI1rVU69HhZqnnQpyV16+R0Xy xs6/0t5ELnVvUgI+2CFuAvyyb2aDtwQ= X-Google-Smtp-Source: AB8JxZr9gozFUOf89MKrBxl4mJrw+c3l1AwxlQLM2AmPVaIn9fsFQ9T2cK/82KVr4j8e2vDLDd0e0g== X-Received: by 10.98.60.209 with SMTP id b78mr41078982pfk.44.1525825567979; Tue, 08 May 2018 17:26:07 -0700 (PDT) Received: from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id f29sm52486712pff.169.2018.05.08.17.26.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 17:26:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 8 May 2018 17:26:01 -0700 Message-Id: <20180509002605.30996-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH v6 0/4] Hyper-V netvsc PMD and VMBus support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2018 00:26:09 -0000 This is a revised version of the Hyper-V native bus (VMBus) and network device (netvsc) drivers. This virtual device is used in Microsoft Hyper-V in Windows 10, Windows Server 2016 and Azure. Most of this code was extracted from FreeBSD and some of this is from earlier code donated by Brocade. Only Linux is supported at present, but the code is split to allow future FreeBSD and Windows support. This version works with upstream kernel (4.16) but in that mode only a single queue is supported. With additional patches that are pending for 5.0 kernel, multi-queue support works as well. Device binding is best done via driverctl; this required some additional fixes to kernel and driverctl to work correctly. Linux kernel vmbus support needed to support sysfs driver_override and driverctl needed to handle non-PCI bus from udev. https://gitlab.com/driverctl/driverctl/merge_requests/3 http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-April/118889.html v6 - rebase to current 18.05 - fix RSS initialization - minor documentation fixes v5 - rebase to current 18.05 - fix message from vmbus due to race on sysfs for sub channel v4 - don't enable by default because of uuid library dependency - api's are internal no need to mark experimental - add netvsc ini file - fix MAINTAINERS entry v3 - fix documentation to format correctly and include more info about binding - fix build on 32 bit - minor white space and indentation fixes Stephen Hemminger (4): bus/vmbus: add hyper-v virtual bus support net/netvsc: add hyper-v netvsc network device net/netvsc: add documentation bus/vmbus and net/netvsc: add meson build support MAINTAINERS | 11 + config/common_base | 13 + config/meson.build | 7 + doc/guides/nics/features/netvsc.ini | 23 + doc/guides/nics/index.rst | 1 + doc/guides/nics/netvsc.rst | 98 ++ doc/guides/rel_notes/release_18_05.rst | 5 + drivers/bus/Makefile | 1 + drivers/bus/meson.build | 2 +- drivers/bus/vmbus/Makefile | 36 + drivers/bus/vmbus/linux/Makefile | 3 + drivers/bus/vmbus/linux/vmbus_bus.c | 355 +++++ drivers/bus/vmbus/linux/vmbus_uio.c | 390 ++++++ drivers/bus/vmbus/meson.build | 16 + drivers/bus/vmbus/private.h | 132 ++ drivers/bus/vmbus/rte_bus_vmbus.h | 397 ++++++ drivers/bus/vmbus/rte_bus_vmbus_version.map | 28 + drivers/bus/vmbus/rte_vmbus_reg.h | 344 +++++ drivers/bus/vmbus/vmbus_bufring.c | 241 ++++ drivers/bus/vmbus/vmbus_channel.c | 406 ++++++ drivers/bus/vmbus/vmbus_common.c | 286 ++++ drivers/bus/vmbus/vmbus_common_uio.c | 232 ++++ drivers/net/Makefile | 1 + drivers/net/meson.build | 2 +- drivers/net/netvsc/Makefile | 23 + drivers/net/netvsc/hn_ethdev.c | 728 ++++++++++ drivers/net/netvsc/hn_logs.h | 35 + drivers/net/netvsc/hn_nvs.c | 533 +++++++ drivers/net/netvsc/hn_nvs.h | 243 ++++ drivers/net/netvsc/hn_rndis.c | 1099 +++++++++++++++ drivers/net/netvsc/hn_rndis.h | 26 + drivers/net/netvsc/hn_rxtx.c | 1221 +++++++++++++++++ drivers/net/netvsc/hn_var.h | 139 ++ drivers/net/netvsc/meson.build | 13 + drivers/net/netvsc/ndis.h | 378 +++++ drivers/net/netvsc/rndis.h | 414 ++++++ drivers/net/netvsc/rte_pmd_netvsc_version.map | 5 + mk/rte.app.mk | 2 + 38 files changed, 7887 insertions(+), 2 deletions(-) create mode 100644 doc/guides/nics/features/netvsc.ini create mode 100644 doc/guides/nics/netvsc.rst create mode 100644 drivers/bus/vmbus/Makefile create mode 100644 drivers/bus/vmbus/linux/Makefile create mode 100644 drivers/bus/vmbus/linux/vmbus_bus.c create mode 100644 drivers/bus/vmbus/linux/vmbus_uio.c create mode 100644 drivers/bus/vmbus/meson.build create mode 100644 drivers/bus/vmbus/private.h create mode 100644 drivers/bus/vmbus/rte_bus_vmbus.h create mode 100644 drivers/bus/vmbus/rte_bus_vmbus_version.map create mode 100644 drivers/bus/vmbus/rte_vmbus_reg.h create mode 100644 drivers/bus/vmbus/vmbus_bufring.c create mode 100644 drivers/bus/vmbus/vmbus_channel.c create mode 100644 drivers/bus/vmbus/vmbus_common.c create mode 100644 drivers/bus/vmbus/vmbus_common_uio.c create mode 100644 drivers/net/netvsc/Makefile create mode 100644 drivers/net/netvsc/hn_ethdev.c create mode 100644 drivers/net/netvsc/hn_logs.h create mode 100644 drivers/net/netvsc/hn_nvs.c create mode 100644 drivers/net/netvsc/hn_nvs.h create mode 100644 drivers/net/netvsc/hn_rndis.c create mode 100644 drivers/net/netvsc/hn_rndis.h create mode 100644 drivers/net/netvsc/hn_rxtx.c create mode 100644 drivers/net/netvsc/hn_var.h create mode 100644 drivers/net/netvsc/meson.build create mode 100644 drivers/net/netvsc/ndis.h create mode 100644 drivers/net/netvsc/rndis.h create mode 100644 drivers/net/netvsc/rte_pmd_netvsc_version.map -- 2.17.0