From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 6E50010B7 for ; Fri, 13 Jul 2018 19:06:49 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id r1-v6so5188916pgp.11 for ; Fri, 13 Jul 2018 10:06:49 -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=12l5VDPOx4J8aD41UWlcxY6T8j5ZCzS1Nk10nEi0/FQ=; b=eA0VIpN2akNCSuqZkTWlrE10aMBlr5qOhCi3eWTwAU6JTq8sps7jTzdsiAFeSzdr5c LKsAml0+k+8csoGuxeYIAgmOOgnmLaEtJdJrp6LwM6r5/S0PXoDYbXRY3XFgz+2miNqs Q8hURC0MzgNqQUbWG/4hd0Dkw2KMf8qH632ebyYvQM3KJPkb/v44m/o4Hdf0Dhp73tBN CcG3pfY4T5WdtSeJoWL55A93CskghIJJlfhKOII7l4Nq7j1ekwHhEc1V3LFSMF7aaF53 eDCUhZT+hrylnqDDXj0Ja1cHtbO75/DRYmXBpPnsdbBUjmBbalHw9Dp6qLox3z3xAZHi oy0g== 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=12l5VDPOx4J8aD41UWlcxY6T8j5ZCzS1Nk10nEi0/FQ=; b=WCj2lgD4uIMKsVTwTEY4cJm0bPj89FBQ6/Iu7cn0xQedxVfJMZCx5lPRQp2YNAZ4lm MqbQGlJJJTIhW22ydeF2xn69rl5NkrHk6F10k2reqMAIfZeMBv93CEBVOrjEz3tyMN0N +apODnNXidTqQskqxL8S+krBsluCkLkTrkPy5CGey8GNpRgw9smh5IaZlUj6fw0y/gfq GyXIxUbN/v7dl/5Hxiy37NxRlkzrtQ1MyZZSArPisTqCWDHHOanpaBmhBF9A5eF1WXht jnkGZ52Qln/KUOyOURxxppgyZd8upx1/pkYrryo+W2vznv8DMdhuBk1UJMF2yrhn0EMT c5AA== X-Gm-Message-State: AOUpUlHS0kW9VNScbCmbMwq5fzYuUScqPbvxWSyewkQ2JxRwZvIhsgjW 7hhRCmBFPSX/Kc/uumVsZeSGdgrSPBQ= X-Google-Smtp-Source: AAOMgpe7kSXR+vb6UcLthcRq5rNtmlZSo/uuSdLxrbINkbADrlSkgFja2CmkmrEKyfougw8pJQGAhg== X-Received: by 2002:a62:be03:: with SMTP id l3-v6mr385608pff.138.1531501607215; Fri, 13 Jul 2018 10:06:47 -0700 (PDT) Received: from xeon-e3.wavecable.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id r28-v6sm27960150pfd.37.2018.07.13.10.06.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 10:06:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 13 Jul 2018 10:06:40 -0700 Message-Id: <20180713170644.9306-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-dev] [PATCH v12 0/4] Hyper-V netvsc PMD and VMBus 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: Fri, 13 Jul 2018 17:06:49 -0000 Final 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 v12 - rebase to 18.08 tip - support copyless transmit of large packets - support external mbuf for large receive v11 - workaround bug in large packet transmit v10 - resolve RSS setup - add documentation about restart issue - update documentation to refer to 4.17 - use same RSS key as MLX v9 - fix places where still targeted at previous release - add map entry for rte_uuid - fix meson build dependencies v8 - targeted for 18.08, move release notes - use Ted's libuuid (not FreeBSD) because that is 3 clause BSD license versus 2 clause in FreeBSD - minor checkpatch whitespace fixes v7 - add EAL UUID functions from BSD to remove dependency on libuuid this means device can be enabled by default and eliminates build issues - add support for latest NetVSP protocol (from hayaingz) - add probe finish for compatability with 18.05 - rebase to 18.05-rc3 Stephen Hemminger (4): eal: add rte_uuid support bus/vmbus: add hyper-v virtual bus support net/netvsc: add hyper-v netvsc network device net/netvsc: add documentation MAINTAINERS | 11 + config/common_base | 13 + config/common_linuxapp | 3 + doc/guides/nics/features/netvsc.ini | 23 + doc/guides/nics/index.rst | 1 + doc/guides/nics/netvsc.rst | 101 ++ doc/guides/rel_notes/known_issues.rst | 20 + doc/guides/rel_notes/release_18_08.rst | 6 + 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 | 18 + drivers/bus/vmbus/private.h | 132 ++ drivers/bus/vmbus/rte_bus_vmbus.h | 396 +++++ 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 | 1 + drivers/net/netvsc/Makefile | 23 + drivers/net/netvsc/hn_ethdev.c | 760 ++++++++++ drivers/net/netvsc/hn_logs.h | 36 + drivers/net/netvsc/hn_nvs.c | 546 +++++++ drivers/net/netvsc/hn_nvs.h | 229 +++ drivers/net/netvsc/hn_rndis.c | 1101 ++++++++++++++ drivers/net/netvsc/hn_rndis.h | 32 + drivers/net/netvsc/hn_rxtx.c | 1329 +++++++++++++++++ drivers/net/netvsc/hn_var.h | 153 ++ drivers/net/netvsc/meson.build | 7 + drivers/net/netvsc/ndis.h | 378 +++++ drivers/net/netvsc/rndis.h | 414 +++++ drivers/net/netvsc/rte_pmd_netvsc_version.map | 5 + lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_uuid.c | 193 +++ lib/librte_eal/common/include/rte_uuid.h | 129 ++ lib/librte_eal/common/meson.build | 2 + lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/rte_eal_version.map | 9 + mk/rte.app.mk | 2 + 46 files changed, 8400 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 create mode 100644 lib/librte_eal/common/eal_common_uuid.c create mode 100644 lib/librte_eal/common/include/rte_uuid.h -- 2.18.0