From owner-freebsd-net@freebsd.org Fri Jul 24 17:42:50 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1675B36DC24 for ; Fri, 24 Jul 2020 17:42:50 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCxP54qJGz3cTZ for ; Fri, 24 Jul 2020 17:42:49 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: by mailman.nyi.freebsd.org (Postfix) id A572136DC22; Fri, 24 Jul 2020 17:42:49 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A530D36DC21 for ; Fri, 24 Jul 2020 17:42:49 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCxP44dL8z3cZy for ; Fri, 24 Jul 2020 17:42:48 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4BCxNx3JY0z3mjt; Fri, 24 Jul 2020 17:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1595612561; bh=MzpRfF0zzWztCNOFX/WU6M7D Yw2SUE8H26GYTwxFX0M=; b=xbYeUZ8IaBzh9Fyg5RanZqtz/uDVUA3tTbvM14lM uQkfTwkP0XtTzrBByOUihSpSSMSPa9Jgi4aP/WuB1RtwXLG1sJ+JjH58kU6Rjw/0 cC6Zx/JZa9F6qLy2Pvd3hLg60NrpbSHJkhf6W0DuEmZzXoPGWlitRUZgbA4gsXyS 2rE= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id U60tpfcuCsWp; Fri, 24 Jul 2020 17:42:41 +0000 (UTC) Received: from vivi.daemonic.se (vivi.daemonic.se [IPv6:2001:470:dca9:1200::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 4BCxNw6Y7Yz3lbm; Fri, 24 Jul 2020 17:42:40 +0000 (UTC) Subject: Re: Add support for building Linux-only network drivers To: net@freebsd.org, zerous@nocebo.space References: <20200724070128.GD21738@mcp.nocebo.space> From: Niclas Zeising Message-ID: <23f13fd1-e8eb-0a66-03cc-9caf26208e7b@daemonic.se> Date: Fri, 24 Jul 2020 19:42:32 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200724070128.GD21738@mcp.nocebo.space> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BCxP44dL8z3cZy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=daemonic.se header.s=20151023 header.b=xbYeUZ8I; dmarc=pass (policy=none) header.from=daemonic.se; spf=pass (mx1.freebsd.org: domain of zeising@daemonic.se designates 176.58.89.161 as permitted sender) smtp.mailfrom=zeising@daemonic.se X-Spamd-Result: default: False [-3.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; NEURAL_HAM_MEDIUM(-1.04)[-1.035]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.99)[-0.994]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[daemonic.se:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.78)[-0.780]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2020 17:42:50 -0000 On 2020-07-24 09:01, zerous wrote: > Hi, > > I would like to work on the project: Add support for building > Linux-only network drivers. I am just wondering who I might have to > talk to when I need some kind of direction. > > I would also like to know if somebody is working on something that is > related to this. I have only started reading about the linux > compatability layer. > Hi! The Linux compatibility layer, aka Linuxolator, is for running userland Linux binaries on FreeBSD. I think what you're looking for is the Linux KPI, or lkpi. I believe Mellanox network card drivers are using this, and I know the drm-kmod graphics drivers are. This might be a starting point for you. Regards -- Niclas