From owner-freebsd-net@freebsd.org Sat Aug 15 22:01:18 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 4B50037FF43; Sat, 15 Aug 2020 22:01:18 +0000 (UTC) (envelope-from zerous@nocebo.space) Received: from brahma.nocebo.space (brahma.nocebo.space [185.52.0.82]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "brahma.nocebo.space", Issuer "brahma.nocebo.space" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BTZ582bf4z4n5t; Sat, 15 Aug 2020 22:01:16 +0000 (UTC) (envelope-from zerous@nocebo.space) Received: from brahma.nocebo.space (localhost [127.0.0.1]) by brahma.nocebo.space (OpenSMTPD) with ESMTP id 88844c90; Sun, 16 Aug 2020 00:01:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=nocebo.space; h=date:from :to:cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=selector1; bh=+0VMYQgq8pmqCWzDuUG9fgtQHHE=; b=BT S2Dm1OS3nPFLuR3i3QnJmHffSKWqjCUBEsU1EZ6iwT9q2b8lCTRzWv9aND1t8Tf5 IcopfIFSAK+0xef3FdLE2z7dmQCyd0Ph3dmMHbMQQME19XmIk8w5yf+9jt0k9eTX Ez5WFf8ITN0BYv8O2+hkXwvZaMmpL15utHdygyvfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=nocebo.space; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=selector1; b=YOqN3WAbBGL2z1LUEEfwPNtvKnr/ CdNhdXPITi8ohNoy4AHKesLXYjWB9AkBuW+OORZ0T2F9OA+paWtBttOykcyAtZnw ey0e+5ciedt2f3dXpOQ/OYEA9ESNZncDxSY0COxcGEB1EhvCIhXZIg6HecIc+/58 O88eyrKja2H5WXI= Received: from mcp.nocebo.space (172.17.0.164 [172.17.0.164]) by brahma.nocebo.space (OpenSMTPD) with ESMTPSA id eef2c381 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Sun, 16 Aug 2020 00:01:07 +0200 (CEST) Date: Sat, 15 Aug 2020 23:59:09 +0200 From: zerous To: Niclas Zeising Cc: net@freebsd.org;, freebsd-net@freebsd.org Subject: Re: Add support for building Linux-only network drivers Message-ID: <20200815215909.GA22866@mcp.nocebo.space> Mail-Followup-To: Niclas Zeising , net@freebsd.org;, freebsd-net@freebsd.org References: <20200724070128.GD21738@mcp.nocebo.space> <23f13fd1-e8eb-0a66-03cc-9caf26208e7b@daemonic.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23f13fd1-e8eb-0a66-03cc-9caf26208e7b@daemonic.se> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1597528877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CNpe/1E2wnigDLBL1DP8/dk574Vnl24QNS7IehyaFZc=; b=nTsAd3GscW3/lKzDEp85u07GzMBF1NA08rMR60iAx++0wu9WpkDgyLqCzdMNrf5SFmtNmi 2tN+bb7PXy6UGpasS3g2quVDWCDh+rCpLdFEXB6HpGMu3m9uwR+rQHstt22PpMBxC5wfvl WEDt25pE45da10E9nV7RyRJcECH9kFjfkH1FUVmDz5Wyjh7hmTUMXljBPD522pGUJZgXBg qh6DlMwlm1rAEsaDeZ3pcnEMp6h+c2sgNj9nBkHV9v9MdygaCzsRL+uLi9a3SptFF5An5o 6G4/Up13NdsPAaXxRmqAfdrJY0TjvhqvgJetJ5dPelGjFl7WAhR66aLaDV3YEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1597528877; a=rsa-sha256; cv=none; b=V3VKubwpMniVSYXWrXbLimAaNa47R0Dj26nte8vuS4/1U1iQwgDdYsqRjy9MG9rdEQS5Dh PAI31oJ6T1zmCtUzFvgqctMNErpbKiESIEOFymasiGdWDB6DrB2GQobuBZLN+r7X3SB7ht FZxr9AcZ0PCYeYbv02huHEB4mRk9ihg81FlC/j5hXws0AzubCy6YNnUfkAOZN8/QzymGpD lzhU0hI/zeBDSc7qTsAyaenM47Rw3EmGrQIVakbWcPCvPeGLca6JaDc1sOjuaSwUxyJ8d0 eDReAw76WS2SXUH4pghoxT4wCdcK6yuSNNUZCHlhsRCLAZIGOo/Yu4xHkyMS8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; dkim=pass header.d=nocebo.space header.s=selector1 header.b=BT S2Dm1; spf=pass (mx1.freebsd.org: domain of zerous@nocebo.space designates 185.52.0.82 as permitted sender) smtp.mailfrom=zerous@nocebo.space X-Rspamd-Queue-Id: 4BTZ582bf4z4n5t X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nocebo.space header.s=selector1 header.b=BT S2Dm1; dmarc=pass (policy=none) header.from=nocebo.space; spf=pass (mx1.freebsd.org: domain of zerous@nocebo.space designates 185.52.0.82 as permitted sender) smtp.mailfrom=zerous@nocebo.space X-Spamd-Result: default: False [-3.32 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[nocebo.space:s=selector1]; NEURAL_HAM_MEDIUM(-1.05)[-1.049]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; ARC_SIGNED(0.00)[i=1]; NEURAL_HAM_LONG(-1.01)[-1.014]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[nocebo.space:+]; DMARC_POLICY_ALLOW(-0.50)[nocebo.space,none]; NEURAL_HAM_SHORT(-1.26)[-1.256]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:198203, ipnet:185.52.0.0/22, country:NL]; FORGED_RECIPIENTS(1.00)[zeising@daemonic.se ..,net@freebsd.org ...] 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: Sat, 15 Aug 2020 22:01:18 -0000 On Fri, Jul 24, 2020 at 07:42:32PM +0200, Niclas Zeising wrote: > > 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. Hi, I was just wondering if I could find more documentation about linuxolator. I have been reading up "FreeBSD Device Drivers" and I think it will help me in understanding network drivers, but I couldn't find much information on the linux kernel api other than a blog on drm-kmod (setup). Naveen