From nobody Wed Dec 8 08:08:38 2021 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1C7F318D67B9 for ; Wed, 8 Dec 2021 08:08:42 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J88tx5mTlz4Xj2; Wed, 8 Dec 2021 08:08:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [IPv6:2a01:4f8:201:6350::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 8AA8030A77; Wed, 8 Dec 2021 08:08:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.134.16] (unknown [94.19.243.255]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id E285C43E3; Wed, 8 Dec 2021 11:08:38 +0300 (MSK) Message-ID: <5461c58c-bae8-8ee5-86f6-25c9de5030fe@FreeBSD.org> Date: Wed, 8 Dec 2021 11:08:38 +0300 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Reply-To: lev@FreeBSD.org Subject: Re: Porting OpenBSD MPLS to FreeBSD Content-Language: en-US To: Lutz Donnerhacke Cc: Neel Chauhan , freebsd-net@FreeBSD.org References: <7de5f4bf0fdec027b5ae5d844a7cb0f5@FreeBSD.org> <20211119201637.GA3334@belenus.iks-jena.de> <20211207142853.GB367@belenus.iks-jena.de> From: Lev Serebryakov Organization: FreeBSD In-Reply-To: <20211207142853.GB367@belenus.iks-jena.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638950921; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gtfsbR3HxdRTg3F0lFAubOMwh9MgUvbOotixcUg0ENw=; b=CbDyS6cr8IqtDV8uby43lVmwylUL19vvVUVVY3kACRY5Hye7fDG1Yetyt1lwQjydDu7+B1 mcwY5q2SJF7mekxWhqPB0EchAHLpYAPLi8sMeJXm0MRXv4TYS+aQT32wIhUy7o9DNm7R1G WwER+fokLxm1eHiScH1KECLHNU1qNOR8aybz8zefa1PWibNky6XPZ5mdbdnr5DwKE6Fiw7 2k0Blw15KY9+9zj+71EYsxBlYRRmPzeIwPfrz7vS5wBH5XrhWRLLsBxXQYu9In7jHGq96a /nn38hCl1WDqrzogGvhN8MEBtDaRs3wP0a2087Qv8StKGLzLWBdrn147Ws7ybQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638950921; a=rsa-sha256; cv=none; b=LHO+xAIHKXILDifGWCLxa5ceFYS3z3O+oZQjQe3EYz9zH1AABsBvRSXZ0PbsoQk/p+66GG fL/OIFHF/x7jWS9aCDuEoUQJ6eh9+ZH5AfvPS0RAWPjCvpnyxXudN2wxQPbV1J7eRk6Jf/ KHiFy0vZ4oQIXed4hSxDbpiE3M2iPHB8iDn6SB93vt2xGLmxIkB4YE1VpONY60Xdn+Vli3 IfIzqp0IQObZRpBrQ4W+w2ZtaL88VFnhfYbFR5JOwnvMQVlazz9vvw05mASySdZZLxKo6M S/c8GNwe8GPHHAjSxBPzKRLQ5kPrnYsHgYp6iDMa2+qOKkOW6kiF5qkbUw5f8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 07.12.2021 17:28, Lutz Donnerhacke wrote: >>> I'd prefer a netgraph approach, if possible. >>> It helps to concentrate on the important things. >> >> Isn't netgraph is very PPS-limited due to excessive logging? > > No. s/logging/locking/, I don't understand, what I've been thinking about to make such stupid mistake. > >> I thought, MPLS is carrier-grade stuff, and netgraph is very limited now. > > I do use netgraph for carrier-grade stuff. > Yes, ng_bridge was limited, but this is fixed. Doesn't it take separate lock for each packet passed though hook? I'm sure, it was true some time ago... -- // Lev Serebryakov