From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0084.outbound.protection.outlook.com [104.47.2.84]) by dpdk.org (Postfix) with ESMTP id CBFC556A1 for ; Wed, 9 May 2018 16:59:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+lcBNErHqc4gnt8WBN545cj4FjFZbjThyuSf+XiDpG4=; b=KYu0oXxpGwH0Pm3N5j8WNTwKZhHQ2oAF3AxkXmJ2C5feUVKqjMPmenkjuqUCS9P/UQclGfyI08R7GRhsQMbxPbGaKtEJBmalS5m6Fnbqk1hwGb7fJ6yucOwB6ZJ4TyTdqOwWKdEStcdE1RXsJ4LmW1b2U0eKyZcGAFVm+K5z1tk= Received: from DB5PR05MB1254.eurprd05.prod.outlook.com (10.162.157.140) by DB5PR05MB1448.eurprd05.prod.outlook.com (10.164.39.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Wed, 9 May 2018 14:59:20 +0000 Received: from DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::f1d7:3ad4:c20e:c08a]) by DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::f1d7:3ad4:c20e:c08a%13]) with mapi id 15.20.0735.019; Wed, 9 May 2018 14:59:20 +0000 From: Raslan Darawsheh To: Stephen Hemminger , "dev@dpdk.org" CC: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v5 0/4] Hyper-V netvsc PMD (and VMBus) Thread-Index: AQHT4FBi+GzYL+beB0+aqFE1pUExlKQni/QA Date: Wed, 9 May 2018 14:59:20 +0000 Message-ID: References: <20180426225736.20295-1-stephen@networkplumber.org> In-Reply-To: <20180426225736.20295-1-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR05MB1448; 7:IKQK1OJ/HMX4rrEIeuWmGdBW3BnUYie0ZRwKf5zBLM8J5pYej+CQ1GRZEIq2LYCft4uNS6wFj05J6ocRLx6EvcJ3mfj7BvQlAiWEpIrn8dhu9mUzsE//j8SheulJ8Esxtg1fGDmU5LyX1CSb35DH0TShoLV9j2VVJGGRk1XQSqKl1jdGpGVRne5tKmEa5P2avx8qI/Z4dAxCnR3+/tfbiXc9A+yMBojKjJRJQhcWoLNa0WLLt/hyOXXmqSPsxhN/ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB5PR05MB1448; x-ms-traffictypediagnostic: DB5PR05MB1448: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(189930954265078)(66839620246622)(45079756050767); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231254)(2232076)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:DB5PR05MB1448; BCL:0; PCL:0; RULEID:; SRVR:DB5PR05MB1448; x-forefront-prvs: 0667289FF8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(39860400002)(366004)(346002)(13464003)(199004)(189003)(486006)(102836004)(7736002)(59450400001)(316002)(99286004)(229853002)(305945005)(26005)(110136005)(7696005)(53546011)(33656002)(76176011)(53936002)(4326008)(68736007)(8676002)(6116002)(6246003)(14454004)(6506007)(2906002)(186003)(74316002)(97736004)(5660300001)(9686003)(55016002)(106356001)(3660700001)(81166006)(8936002)(105586002)(6306002)(81156014)(2501003)(5250100002)(66066001)(3846002)(3280700002)(446003)(25786009)(6436002)(966005)(575784001)(476003)(45080400002)(478600001)(11346002)(2900100001)(86362001)(59010400001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR05MB1448; H:DB5PR05MB1254.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 7AvmeUwWRJgYsQpIHzn9rwd8Y1Ioxtew+VVlmRmyTJuC3gvasl4rsfnHIs2PM0tbekbrykdH8s/Ql/cPf0UHNhqLUjK5KEivQxRHpBsJv/XtIX9PJQJhadpQHf+KAlP0xps5N0h8dc0PlagrB1te7LRvdrr/U/Ul8KoMF1JY46/lGDZwGgG5OfgIR7lLYEKb+svjmiS0Mu+MoCg5E7rzeZpQ+d06w5aA4JWpOC14r6kQwRulnc0w6XjLO7QjFRVcQKW/e3ltFAT53oAyyJ361GTo7pahMoyQ0/AZJNYR/zR+p+8qlbS1vDntZfNArb6421znoH9KupH1cmZW8aOoJQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: fbe4c408-6fef-48f1-a09d-08d5b5bd71ea X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbe4c408-6fef-48f1-a09d-08d5b5bd71ea X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2018 14:59:20.5878 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1448 Subject: Re: [dpdk-dev] [PATCH v5 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: Wed, 09 May 2018 14:59:23 -0000 Hi Stephen, I'm trying to compile your patches and I'm getting this compilation issue: /download/dpdk/drivers/net/netvsc/hn_ethdev.c:28:27: fatal error: rte_bus_v= mbus.h: No such file or directory compilation terminated. /download/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target 'hn_et= hdev.o' failed make[6]: *** [hn_ethdev.o] Error 1 make[6]: *** Waiting for unfinished jobs.... CC hn_rndis.o Kindest regards, Raslan Darawsheh -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen Hemminger Sent: Friday, April 27, 2018 1:58 AM To: dev@dpdk.org Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH v5 0/4] Hyper-V netvsc PMD (and VMBus) 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://emea01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgitla= b.com%2Fdriverctl%2Fdriverctl%2Fmerge_requests%2F3&data=3D02%7C01%7Cvasilyf= %40mellanox.com%7Cfef68d6edf7e48e171ab08d5abc922c8%7Ca652971c7d2e4d9ba6a4d1= 49256f461b%7C0%7C0%7C636603802739758809&sdata=3DPmKpSOIJTJ2iuPG37SfdXjH8cEL= SJxaoYB4FM3iKyMw%3D&reserved=3D0 https://emea01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fdriver= dev.linuxdriverproject.org%2Fpipermail%2Fdriverdev-devel%2F2018-April%2F118= 889.html&data=3D02%7C01%7Cvasilyf%40mellanox.com%7Cfef68d6edf7e48e171ab08d5= abc922c8%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636603802739758809&sd= ata=3D%2Fgxh5NFMja9dFdj8RCd6YTocZ0TvRBCVTgvC6hzok4M%3D&reserved=3D0 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 | 97 ++ 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 | 405 ++++++ 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 | 732 ++++++++++ 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 | 1101 +++++++++++++++ drivers/net/netvsc/hn_rndis.h | 26 + drivers/net/netvsc/hn_rxtx.c | 1221 +++++++++++++++++ drivers/net/netvsc/hn_var.h | 140 ++ 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, 7892 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 --=20 2.17.0