From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by dpdk.org (Postfix) with ESMTP id 852992C52 for ; Mon, 19 Nov 2018 18:08:19 +0100 (CET) Received: by mail-pg1-f177.google.com with SMTP id n2so6927944pgm.3 for ; Mon, 19 Nov 2018 09:08:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YNnMfWm9hT0ie86+5AoMccozeiCEBr84/KV8AjEjzcs=; b=XuVGdUZTl34ubmWEDolDdx/f6txU7Q/6ib3JqWIrGykFAwUnCAedbTkQsDrY8Hf65v p+lxvAaSQ3/vNcraQow43QeaVS7EBgXItCtRhg5uyRZLy5FRIjIa2dqfsErq/goOupRz FILDIzIxmRf3o80hWg8RDk1GTgQBkFiqTVa4NoDNkomga74nY30VtNbg8qncM+fEti8z 4Enu2kNwVi/S+8bLaJLvcv0dLY9UnypIK6YkdnWUpuxrvlXRvM+dkCsFubVM+pwk3Re0 7s1P9CvnT55uoztvi7ElCmu108XDQBXKELRA+a0S1mekpCdV4IJS2Q28olwXhYLFLG32 zMxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YNnMfWm9hT0ie86+5AoMccozeiCEBr84/KV8AjEjzcs=; b=Tn6Dw20JFhsDKHQdrOLo/AcRqEx1w/98PzeNCKPzP4pt1eVCUzNTX4BJRTEx1r03FI DWH5M+w7wpje+OTpcHHYvBpeFjLIOVp/0i5TPgM8x5cJWrUNDVVMNIbzBO/HhzdpzjzB uhsPclRUcjnrNClu8Nkl3rSPrVN1Znocj3b5qw1+/qrpf/Av3UcdzeDEvVhamXmGTR8w THQb0TP7SKCC56TwV5MeN8VB9JXndhMsKW5imt5A5l5R3Whv14GC9KZ9Pvc7WVcGKsv/ ztCl4mYgm61r+/0Km1oPrGAIgV4+HxdxI1/OOCY0yv+a6HB4cMJnxCGVUF+PV+PLV61a 7uWg== X-Gm-Message-State: AGRZ1gIULHNcYra47GkTICw8Pt0kkuBAQLtbVPVsvd27IGEkxYvFfde7 YBz+ajngUh0ntMBUAOrj8zVgng== X-Google-Smtp-Source: AJdET5caiI+s+LT4Sv9sfRYAznyZrsi3JVUs6jo4fSwhVnW3gz5jhAy6aSotc+xWs/XzN5fM1jtDNw== X-Received: by 2002:aa7:85d7:: with SMTP id z23mr10180653pfn.205.1542647298480; Mon, 19 Nov 2018 09:08:18 -0800 (PST) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id d11-v6sm1699155pfe.40.2018.11.19.09.08.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 09:08:18 -0800 (PST) Date: Mon, 19 Nov 2018 09:08:10 -0800 From: Stephen Hemminger To: Mit Matelske Cc: shahafs , Thomas Monjalon , dev , Yongseok Koh Message-ID: <20181119090810.02543f44@xeon-e3> In-Reply-To: <383796151.782033.1542640162186.JavaMail.zimbra@perftech.com> References: <1203238912.103536.1542300483728.JavaMail.zimbra@perftech.com> <4060784.NMgGY7Cv01@xps> <164311280.707048.1542583391811.JavaMail.zimbra@perftech.com> <383796151.782033.1542640162186.JavaMail.zimbra@perftech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 17:08:19 -0000 On Mon, 19 Nov 2018 09:09:22 -0600 (CST) Mit Matelske wrote: > > Monday, November 19, 2018 1:23 AM, Mit Matelske: > >> Subject: Re: [dpdk-dev] mlx5 under FreeBSD > >> > >> > 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 the > > DPDK eal layer, the FreeBSD has many not supported functions. > > No, I'm not sure of anything. I've just started focusing on this. I do know to > get it to compile I had to include subsets the following includes: > > libmnl/libmnl.h > linux/ethtool.h > linux/netlink.h > linux/neighbour.h > linux/types.h > linux/rtnetlink.h > linux/pkt_cls.h > linux/pkt_sched.h > linux/if_ether.h > linux/tc_act/tc_gact.h > linux/tc_act/tc_mirred.h > > My initial goal is to change the DPDK code as little as possible, but that > might not be be possible. You'd have a much better feel for that than me > at this point. > > > > > We haven't started to work on it because the majority of our use cases are for > > Linux. > > I figured as much. > > > Nevertheless, we can help with code reviews and guidance. > > Once I get somewhere I will definitely take you up on that. > > Thanks! > > Mit > > > > >> > > >> > Cc also mlx5 maintainers. > >> > >> Thomas- > >> > >> Thanks for looping the correct people in! > >> > >> > > >> >> 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. > > > >> > >> 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 around > >> and to pass packets to and from the stack from every interface. > >> > >> Your comment matches one of my co-worker's when I explained to him how > >> the mlx5 driver works. > >> > >> Mit > >> Rather than building a complex shim, why not just have an OS dependent section of the driver. The bigger issue is that the kernel side functionality in BSD is different or missing. For example TAP API is different and not multi-queue.