From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shahaf Shuler Subject: Re: mlx5 under FreeBSD 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: dev , "stephen@networkplumber.org" , Yongseok Koh To: Mit Matelske , Thomas Monjalon 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) In-Reply-To: <164311280.707048.1542583391811.JavaMail.zimbra@perftech.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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