From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150055.outbound.protection.outlook.com [40.107.15.55]) by dpdk.org (Postfix) with ESMTP id ADAB529CB for ; Mon, 19 Nov 2018 07:28:18 +0100 (CET) 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:X-MS-Exchange-SenderADCheck; bh=geZZ7pdOL297nTJzFwqv7xZuuHPOtnjoUFbR1/1unrY=; b=lE5dra1ZloiUvyqZNsWQ9bewtBr1DSVf7/6Khdo2rhvqEIci69K0X8kpqp3vttMvy1HDQMd5VUUlihFsQvFHs0cuvCFpzlufktYjwkch1PH3RNdhzslMRqe+vKv6kVn/rCjHM2uDZf1GG5ruySqcFTj3UjLmULOVI2FpnWezDIc= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB5273.eurprd05.prod.outlook.com (20.178.42.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.30; Mon, 19 Nov 2018 06:28:17 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f%2]) with mapi id 15.20.1294.048; Mon, 19 Nov 2018 06:28:17 +0000 From: Shahaf Shuler To: Mit Matelske , Thomas Monjalon CC: dev , "stephen@networkplumber.org" , Yongseok Koh Thread-Topic: [dpdk-dev] mlx5 under FreeBSD Thread-Index: aO4fK4cZ1J0dwlDFBqqsMKaGSDlx88zAQc6AgACSe4CAAHbEwA== Date: Mon, 19 Nov 2018 06:28:17 +0000 Message-ID: References: <1203238912.103536.1542300483728.JavaMail.zimbra@perftech.com> <4060784.NMgGY7Cv01@xps> <164311280.707048.1542583391811.JavaMail.zimbra@perftech.com> In-Reply-To: <164311280.707048.1542583391811.JavaMail.zimbra@perftech.com> 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=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB5273; 6:DeMqwon5lbvcUc2l7FFJmu4mwMtCKaEdOxEre8WGk0NRsjnKsOB49BOdnFAr/Z5yet9C7CmBTNF5rkltBrR+Vi4P5NspK9yCYafPgRJgbupZu+Uub4aoGAGPwGXi7kbdvlWtGjIAVc0PEG9Fq3TVmL4rzaySufvkrPccQx1TV9iFA2eZFLFy8KFnT4sfBAIjIY+J/RTb1kzKOTQFlVAakso4Li+wvCWPf5V05jQHTzD4qxRIncAZxIcobzvKV56wHBLMj0EuBcDhJ8fL8dBHwThVH5EtdFWGNGM8OolApDKU3+FHbz+lFv70LpUWJpaxKRdDJORSqNr70aYWx+YscNThTLZlHFmy/s8GYB+MqdqWd6C3QkSNaspqCOYv2DJe8QB77BL8FA6/OyZC1wbW84pl0DvjhOPRkQzsNgqCzJXQXZ0v+ampO1djsN3x4u9aRF/VbqGWXD+rPaZZ8VmKPw==; 5:9KuYwNeY2L9TtH8OZ3ljhvy24JDUzJrdDxqVgcCByHZyiVXxw6dOtJkN0Szeg8QfaIUQtbP8IZXLHSSCgnNvw7PJtimhIUAo3Xa7B7y9uJWV+GezG45dgkpWkI8punLsR1CjM/5PRbBKwYVOmGe459XAaAfK058txiCkkAUlErA=; 7:JAcVdlGWiJ4rET7aLt7WYZZ/aL+IfTyQ3Sp3ptrkLyq8j47MVvoaDGnUMYsJ7u4drH8rY4220qezF+61CJ7rAkS8J1s+7xuBggGcCqtU4/31ywSJdL2RMJUj8/XeKWvUyDZ/p8g6zheLzlt/KAxcOQ== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: b01af42a-8b0f-4b4c-05cc-08d64de83157 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB5273; x-ms-traffictypediagnostic: DB7PR05MB5273: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231415)(944501410)(52105112)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:DB7PR05MB5273; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB5273; x-forefront-prvs: 08617F610C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(136003)(396003)(366004)(346002)(199004)(189003)(68736007)(3846002)(6116002)(2900100001)(6506007)(102836004)(478600001)(6246003)(55016002)(81156014)(110136005)(76176011)(97736004)(53936002)(6436002)(8936002)(86362001)(8676002)(186003)(81166006)(2906002)(26005)(14454004)(71200400001)(9686003)(54906003)(71190400001)(7696005)(33656002)(99286004)(4326008)(486006)(14444005)(256004)(316002)(66066001)(105586002)(11346002)(476003)(106356001)(446003)(305945005)(229853002)(74316002)(7736002)(25786009)(5660300001)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB5273; H:DB7PR05MB4426.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: u22KAxAqo4Keo9dHeZn889wtgHrrzMysK8/gNVdkPRAATifIUouILiTdE1Wv9sYW38fiMkTdykiogUnh642PyfaAn8+oivp7gIwZ8XkzkmnK1L06WWAgSCVvNdD3LqDLomZwtTG3oGybATKlKtU784H5Xp/oY1w7JzIOJehR0eVEy1tK+UP6l/gH/3aVBsPO8INVkOcBuEphS9BPQ3RCZ7C4KrDjKdQoS7bUM0epe9Ul+UJJvoVGaaJNM8toHBbN5zZUNF9HuV4OqKaFFzba4To6Xgbo0Uidkk6HZ8vtm85P/UhNGsV4WZ2XypBIPOazseWo6IKjw8dZB8DszzOCWD8HPF/hWHkXn6hUxDRHM9s= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b01af42a-8b0f-4b4c-05cc-08d64de83157 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2018 06:28:17.4416 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5273 Subject: Re: [dpdk-dev] mlx5 under FreeBSD 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: Mon, 19 Nov 2018 06:28:19 -0000 Hi Mit, Monday, November 19, 2018 1:23 AM, Mit Matelske: > Subject: Re: [dpdk-dev] mlx5 under FreeBSD >=20 > > 15/11/2018 17:48, Mit Matelske: > >> Is anyone working to include support for the mlx5 PMD under FreeBSD? > > > > I think Stephen (Cc) looked at it. > > > >> I've started down this road by building Linux compatibility layers > >> for the required Netlink and Ethtool calls in the driver, but would > >> gladly accept help and advice from those much more knowledgeable then > myself! Are you sure netlink and ioctl is all you need? Looks like also sysfs stuff, and I am not sure what else is missing from th= e DPDK eal layer, the FreeBSD has many not supported functions.=20 We haven't started to work on it because the majority of our use cases are = for Linux. Nevertheless, we can help with code reviews and guidance.=20 > > > > Cc also mlx5 maintainers. >=20 > Thomas- >=20 > Thanks for looping the correct people in! >=20 > > > >> Though not important, why did Mellanox build a PMD that relied on the > >> kernel driver being in place unlike most other PMDs? > > > > Because it allows to choose which flows go to DPDK and which ones are > > processed by the kernel. > > Actually, you should ask why other PMDs don't have this feature ;) +1.=20 >=20 > Very fair response. We actually wrote our own "shim" into the stack for = all > the relevant drivers we use to both keep the existing ifnet interfaces ar= ound > and to pass packets to and from the stack from every interface. >=20 > Your comment matches one of my co-worker's when I explained to him how > the mlx5 driver works. >=20 > Mit >=20