From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00072.outbound.protection.outlook.com [40.107.0.72]) by dpdk.org (Postfix) with ESMTP id CDC938DAE for ; Tue, 17 Apr 2018 11:02:49 +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=oVJkRGdwXsW9SKoR7eXh5Bwgp+LrGl2iZL/aSH+Ja/4=; b=SJCdNB08F6lUPjrzjdngzOXUySNg9Mc5Z2AAH56c5QQOS5kp32ysudFGWibQ2QJ6PKOznGBWxLJ9bXfQ64d13ybM+11LmKfg4F7dxIjuc9ykplDmk6zUjbpOGj2+3dVBPJto1qlZyvwgy6gWJGZq7TdezCakWjGMG0ET/jXAHOA= Received: from AM4PR05MB1684.eurprd05.prod.outlook.com (10.165.246.7) by AM4PR05MB1858.eurprd05.prod.outlook.com (10.167.90.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.10; Tue, 17 Apr 2018 09:02:46 +0000 Received: from AM4PR05MB1684.eurprd05.prod.outlook.com ([fe80::c85d:2299:7213:75fc]) by AM4PR05MB1684.eurprd05.prod.outlook.com ([fe80::c85d:2299:7213:75fc%6]) with mapi id 15.20.0675.015; Tue, 17 Apr 2018 09:02:45 +0000 From: Raslan Darawsheh To: "dev@dpdk.org" , Stephen Hemminger CC: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v2 0/4] Hyper-V Netvsc PMD Thread-Index: AQHT1dofLFWDS3OthkOFlfH+0/85U6QEppPggAABwgA= Date: Tue, 17 Apr 2018 09:02:45 +0000 Message-ID: References: <20180416232439.8018-1-sthemmin@microsoft.com> In-Reply-To: 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.14.243.54] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR05MB1858; 7:yR5eDKvuMqDkTl76dRsLsw2sy9w6CaGgegwndG/pX0wsdbbSccaYJ/7sZHV/O2oEk5YArvp0Hf9xRJBOB7Axo96Tf7yg3VEVhSF9vYqFdl3ZPTBSXJRhaYttvmLYBnhH+lEoTIjS5kowrTUp4fhJv1Dd//vY/VQDtOv9PIvZ0NdbcyTgreLOPFXlsCOjdwPXIw/E04bTst9/yGEzLV/BIIsrYYCnPUBjtAeRCo8lGeaiZrCMEVKNlkwvLMLQQ0Bj x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB1858; x-ms-traffictypediagnostic: AM4PR05MB1858: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(158342451672863)(89211679590171)(189930954265078)(66839620246622)(45079756050767); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231232)(2232076)(944501327)(52105095)(10201501046)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:AM4PR05MB1858; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB1858; x-forefront-prvs: 0645BEB7AA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(346002)(396003)(366004)(39860400002)(376002)(13464003)(199004)(189003)(107886003)(305945005)(2501003)(478600001)(5250100002)(6436002)(81156014)(186003)(33656002)(25786009)(229853002)(81166006)(1511001)(53546011)(66066001)(8936002)(86362001)(26005)(45080400002)(7736002)(4326008)(74316002)(966005)(2906002)(3280700002)(6506007)(59450400001)(14454004)(97736004)(11346002)(7696005)(446003)(3660700001)(2900100001)(76176011)(102836004)(99286004)(68736007)(106356001)(316002)(53936002)(55016002)(6246003)(476003)(6116002)(8676002)(9686003)(8666007)(3846002)(5660300001)(110136005)(486006)(6306002)(105586002)(59010400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1858; H:AM4PR05MB1684.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: mYNgeqxYTtnH79/mDk4PX9l/mbq7DrvQKJYEEemmvIn9cxUQBQljnzWZYfg77gnYAT05bTLvDLTv63y4uC7+sVwTNemQTmsLyO2AldK15buoje2wj2amoHjMGbnrIghOvjiQnD/7NNf6SYzhcKRPOcHXYU+GXBYwU9ZaLB8GOMRtBxYgSucQTG5NGy+KPYpPhR4h0tqAjGrKkoo8PSz3vzCWuEQaopK4N+OMaCLlbEojqmXdBnFIH9Jsjo166ZWqtYL5RwoqTuJbwe1kNygcQ3b8jT7lcwSggk1fg+HETo5AFDyfYnyaFHIHpGPmUU4AZ2xIQu4nH8Osysn8U6TNfw== 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: a6b2c1ab-5ce7-42ab-b88d-08d5a441fc86 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6b2c1ab-5ce7-42ab-b88d-08d5a441fc86 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2018 09:02:45.8539 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1858 Subject: Re: [dpdk-dev] [PATCH v2 0/4] Hyper-V Netvsc PMD 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: Tue, 17 Apr 2018 09:02:50 -0000 Hi Stephan, I've just tried to apply your patches on top of current master branch and I= have the following two issues: 1- compilation is failing with the following error when compiling with RTE_= TARGET=3Dx86_64-native-linuxapp-gcc: /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_common.h:122:30: error: c= ast to pointer from integer of different size [-Werror=3Dint-to-pointer-cas= t] #define RTE_PTR_ADD(ptr, x) ((void*)((uintptr_t)(ptr) + (x))) ^ /root/dpdk/buildtools/pmdinfogen/pmdinfogen.c:99:9: note: in expansion of m= acro 'RTE_PTR_ADD' return RTE_PTR_ADD(info->hdr, ^ 2- compilation is also failing with the following errors when compiling wit= h RTE_TARGET=3Di686-native-linuxapp-gcc CC linux/vmbus_uio.o /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c: In function 'rte_vmbus_map_= device': /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c:194:39: error: passing argum= ent 2 of 'eal_parse_sysfs_value' from incompatible pointer type [-Werror=3D= incompatible-pointer-types] if (eal_parse_sysfs_value(filename, &res->len) < 0) { ^ In file included from /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c:22:0: /root/dpdk/lib/librte_eal/common/eal_filesystem.h:123:5: note: expected 'lo= ng unsigned int *' but argument is of type 'uint64_t * {aka long long unsig= ned int *}' int eal_parse_sysfs_value(const char *filename, unsigned long *val); I noticed one additional new dependency which is uuid-dev and I think you = might be missing the documentation of that. Kindest regards, Raslan Darawsheh > -----Original Message----- > From: dev On Behalf Of Stephen Hemminger > Sent: Tuesday, April 17, 2018 2:25 AM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH v2 0/4] Hyper-V Netvsc PMD >=20 > This is a revised version of the Hyper-V native bus (VMbus) and=20 > network device (netvsc) drivers. This virtual device is used in=20 > Microsoft Hyper-V in Windows 10, Windows Server 2016 and Azure. Most=20 > of this code was extracted from FreeBSD and some of this is from=20 > earlier code donated by Brocade. >=20 > Only Linux is supported at present, but the code is split to allow=20 > future FreeBSD and Windows support. >=20 > This version works with upstream kernel (4.16) but in that mode only a=20 > single queue is supported. With additional patches that are pending=20 > for 5.0 kernel, multi-queue support works as well. >=20 > Device binding is best done via driverctl; this required some=20 > additional fixes to kernel and driverctl to work correctly. > Linux kernel vmbus support needed to support sysfs driver_override and=20 > driverctl needed to handle non-PCI bus from udev. >=20 > https://emea01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit > l ab.com%2Fdriverctl%2Fdriverctl%2Fmerge_requests%2F3&data=3D02%7C01% > 7Cshahafs%40mellanox.com%7Cb3ebf03807674980977208d5a3f13f51%7Ca65 > 2971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636595178928020801&sdata > =3DKIfDnH5vAzVmm71xlb%2F%2BtniP95NLGuqMWImDQVkBfLU%3D&reserve > d=3D0 >=20 > https://emea01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fdriv > erdev.linuxdriverproject.org%2Fpipermail%2Fdriverdev-devel%2F2018- > April%2F118889.html&data=3D02%7C01%7Cshahafs%40mellanox.com%7Cb3eb > f03807674980977208d5a3f13f51%7Ca652971c7d2e4d9ba6a4d149256f461b%7C > 0%7C0%7C636595178928020801&sdata=3D5A%2FxWKy90T5H%2F9cixFZRMl78U > WNgIyYAt%2BiOKXnHX4U%3D&reserved=3D0 >=20 >=20 > 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 >=20 > MAINTAINERS | 10 + > config/common_base | 13 + > config/common_linuxapp | 4 + > config/meson.build | 7 + > doc/guides/nics/index.rst | 1 + > doc/guides/nics/netvsc.rst | 73 + > doc/guides/rel_notes/release_18_05.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 | 354 +++++ > drivers/bus/vmbus/linux/vmbus_uio.c | 379 +++++ > drivers/bus/vmbus/meson.build | 17 + > drivers/bus/vmbus/private.h | 132 ++ > drivers/bus/vmbus/rte_bus_vmbus.h | 400 ++++++ > 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 | 760 ++++++++++ > 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, 7869 insertions(+), 2 deletions(-) create mode=20 > 100644 doc/guides/nics/netvsc.rst create mode 100644=20 > drivers/bus/vmbus/Makefile create mode 100644=20 > drivers/bus/vmbus/linux/Makefile create mode 100644=20 > 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=20 > drivers/bus/vmbus/private.h create mode 100644=20 > drivers/bus/vmbus/rte_bus_vmbus.h create mode 100644=20 > 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=20 > drivers/bus/vmbus/vmbus_channel.c create mode 100644=20 > drivers/bus/vmbus/vmbus_common.c create mode 100644=20 > drivers/bus/vmbus/vmbus_common_uio.c > create mode 100644 drivers/net/netvsc/Makefile create mode 100644=20 > drivers/net/netvsc/hn_ethdev.c create mode 100644=20 > drivers/net/netvsc/hn_logs.h create mode 100644=20 > drivers/net/netvsc/hn_nvs.c create mode 100644=20 > drivers/net/netvsc/hn_nvs.h create mode 100644=20 > drivers/net/netvsc/hn_rndis.c create mode 100644=20 > drivers/net/netvsc/hn_rndis.h create mode 100644=20 > drivers/net/netvsc/hn_rxtx.c create mode 100644=20 > drivers/net/netvsc/hn_var.h create mode 100644=20 > drivers/net/netvsc/meson.build create mode 100644=20 > drivers/net/netvsc/ndis.h create mode 100644=20 > drivers/net/netvsc/rndis.h create mode 100644=20 > drivers/net/netvsc/rte_pmd_netvsc_version.map >=20 > -- > 2.17.0