From nobody Mon Dec 23 12:05:14 2024 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 4YGxYF6LpQz5gj1r for ; Mon, 23 Dec 2024 12:05:21 +0000 (UTC) (envelope-from vadimnuclight@gmail.com) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YGxYF4SbNz4PS9; Mon, 23 Dec 2024 12:05:21 +0000 (UTC) (envelope-from vadimnuclight@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-30167f4c1e3so45063151fa.3; Mon, 23 Dec 2024 04:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734955519; x=1735560319; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=4ka3SaGQqvpUjnZYi1TFVjicyJ4y9v0tXkBA+8j+oz0=; b=V4asJhXjYyrv/C1+xzZw8YBmW9CszVW7GYQXJlg+ojAJR6QiALDaBXBoYXBklKJAxJ jHTtda+OcfznqBjpOFqrmZouKGo5Hg23kMG4JpSOVoA3mY/CS7NPVHrH6vYo42tresfG PbYNA4su/+Sd9P2pMrZEwE0G+GLp4ScQeeW7hP+Ff9sx1pWlFYbzsNvAzAo/4durmQcR RbMkdQTG1RcVg/dKOF0gvKLrEZZytQPw3tGyZj4RAUh0Sktt5cxWMDu+VZwRL6WyxAMp zqqXa9tzkFIjQZuAmu8VLJle4Gn7KqHyqUSHB0ql6EKkxOOOEFBxh3nhJj5LljVKyEEm WZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734955519; x=1735560319; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4ka3SaGQqvpUjnZYi1TFVjicyJ4y9v0tXkBA+8j+oz0=; b=HpQqsVIhC5PgXCGU50SwlTl4/QLT+wgu3H2mzXHnjFNppcivGEB3qomj21KXvvp50q kuerKlRiahTmaqWiNqJh2YTkd8KTIU2esV3NNPpCc0FoS1N9U3vlIARQin4pSWWmpyzi t8YkZuf2LN9SIslF/Go1RP3wiRXhRSke2xX/w1KiRXQa6HLHUH0KRGAW5WTGr7SByxiv TMzlxwVPHQmulkiCfNiOsRWPyTYFfPHf2reCDucOLJia6Mf1uFQPyT0Fy1kulUt525qt Tliz+jxZh0g4+yQhhDFSezGNiW2pkmDiPv+gJANQQSgg+p/BwCq9bwox3fBv0kZ1IuJK MFEw== X-Forwarded-Encrypted: i=1; AJvYcCVxQkpybpEHnY7cTeb3sMSDFJoDk6kkbRy8sJdas2tSJOADnGEnmkQIDlcQRDH+yd4s6TLlszPrQWIl6w==@freebsd.org, AJvYcCXA6GE52rxOfoY9bZ+u/8yHPTsRltFPX0U9TesVURkc0rCVL0LMUpNkUqBBR/YajnoKXaWASPE=@freebsd.org X-Gm-Message-State: AOJu0YwKrTMyTl3N+276TfNV/iBKr6/3qn/fjBCZptPhvC3ToUn+Zs2r MreqIxmpFENOc0k2ZIUmbKmfYhFiyZDAasEa/HH2DdM9IUu+2Hqiqqoa2F4/ X-Gm-Gg: ASbGncvnzQHmG12LddofW/1KyR+awPegt8L+ZKP1St78qyPpUC3vpTPJ99jhuwdUoVW VJEB+HPRy3G+nRktKe+KUbtrZyDiGbH1HdZpo0UIBXwWgumqE3jjO0Y8ebHF2gT+9AXNU5LB7jQ HCJeqeNPwE8vyzWnb5aAiEJ+wE285eGYU4NjulzmA6OpSN3EddbQIpNCvwT5iPkxbjOYTayTwBX UebXXfrYluojzgVF34bjD7fqMH/mhgAe2Ynt01d7OadeKr5VNj4+ReXtMjgLNYlFPCgAZdSud+J mcy+DH3jZBLhgKpiUKlkitQ= X-Google-Smtp-Source: AGHT+IGMKwpUqB0mVxvYCZhyuzUEJ3WaT8oroAAsxxtbW1z9BEo8bsYgaLimMwNnRf36Z0ulH/1NkA== X-Received: by 2002:a05:651c:4ca:b0:300:7f87:a6a with SMTP id 38308e7fff4ca-3046850a91emr32775411fa.7.1734955518926; Mon, 23 Dec 2024 04:05:18 -0800 (PST) Received: from nuclight.lan (broadband-37-110-95-35.ip.moscow.rt.ru. [37.110.95.35]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3045b069f3csm12930831fa.88.2024.12.23.04.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2024 04:05:18 -0800 (PST) Date: Mon, 23 Dec 2024 15:05:14 +0300 From: Vadim Goncharov To: "Andrey V. Elsukov" Cc: "Bjoern A. Zeeb" , Mark Johnston , freebsd-net@freebsd.org Subject: Re: per-FIB socket binding Message-ID: <20241223150514.5649f22a@nuclight.lan> In-Reply-To: References: <4p5o59s4-5p70-0775-1479-990o1s5po7r2@yvfgf.mnoonqbm.arg> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd12.4) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4YGxYF4SbNz4PS9 X-Spamd-Bar: ---- On Mon, 23 Dec 2024 13:29:01 +0300 "Andrey V. Elsukov" wrote: > On 21.12.2024 19:34, Bjoern A. Zeeb wrote: > > How much use are FIBs still these days?=C2=A0 Half of the original use = cases > > I can think of could easily and better be overcome by using vnet jails > > with a physical or virtual interface (e.g, vcc) being delegated to the > > vnet. > >=20 > > I wonder if anyone on FreeBSD is using FIBs to actually have multi-FIB= =20 > > forwardig but that very little touches your use case apart from the mgmt > > which again can be factored out better (or inversely, factoring out the > > forwarding). > >=20 > > I would honestly know who and how FIBs are still in use today or if they > > should be put on a list to be removed for 16 (I assume I might be > > surprised). > >=20 > > That all said with your opt-in approach if the code itself doesn't bring > > too many new complications I'd be happy with it (assuming FIBs still > > have a use case). =20 >=20 > Some might say that VNET is useless and should be removed instead. We=20 > have bhyve and old-style jails. Without VNET the kernel code will be=20 > robust and simple again, and easy for debugging. >=20 > But 1st April is not yet, and someone will say nothing. It's not 1st April, I always had same bad feeling about VNET since 6.x. Unfortunately, with Linux network namespaces competing, it's now too late to axe VNET. > FIBs are useful as is, but also can be used with "ipfw setfib" that make= =20 > it irreplaceable. And there is no SQLite (as alternative to FIBs) in kernel yet... --=20 WBR, @nuclight