From nobody Sat Dec 21 16:34:25 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 4YFqcs2sSQz5hLdk for ; Sat, 21 Dec 2024 16:34:37 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YFqcq6qR4z4L0g; Sat, 21 Dec 2024 16:34:35 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zabbadoz.net header.s=20240622 header.b=MDHkceai; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2003:a:140a:2200:6:594:fffe:19 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net; dmarc=pass (policy=none) header.from=zabbadoz.net Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 0F879A64805; Sat, 21 Dec 2024 16:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1734798861; bh=5LDP82MzWlL7kVTZcM9SAYHeeCsuFajdlIx6gaexGrk=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=MDHkceaivjjgSJvp13RBkO/SyCLKPZfmnTcqa00heJ5LYiDXElMEozp2Cu6Khp+PN 16duP6A5o9aVmpWy9SNW62oW3Ia/lW9bOofYoDeXnLqCbwtxGEZf41dPzB6gv4ZRRJ igTCj+vVfVdLnA/+8EbnSF8NETK4SN/HD6Qpb9b71m/5A2YrAxzcxa4Z05Cq6Xpnqz JxHNtobrclSdv4k0bs0iqxbPpIoqbeFZ5y37jnpw23op4Y8FVeBBi2TMUg8u0/b4bi cSO1pijQpi+6vbYh8LX7N3nwTBJt8yMjzLALQNsgFcul9VziEkAOjL8SkiNT07FWsa i67GcKFjErCR+67kVFikAOsOSXmtYX5ntRIAEhXu7l5kSOvB6nTVVT3CaEV41S6AW0 BAQ1TdUrcrghn8PbFpiJZIdD3hCVWvQ1A+k7D6gl5MgYtvFHIvESqZcofj6I1f4CkT sL2oVR1RB3WpcaGEfDGxvV6u7oillQu/OBQPt1KyjTJbXUNgdgZ52FvNTwqhVUK491 umiegCwB9a8OIFduxPYr6YWBvYZ/HIU4llkndjYkd2jlh4/MwxBe3tOYi1kqZaWHvP 8bjE8y8LgZF+6L/XZfNJTgvA7WgN2RcaI2Cf5rAbUEcdHp4ahqNEwUfVccSz30dIpK 4S2Ak8V6fw9AZ8gbGaDra7CE= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 6EBA62D029DC; Sat, 21 Dec 2024 16:34:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id kmVTdERnJKV2; Sat, 21 Dec 2024 16:34:26 +0000 (UTC) Received: from strong-aiccu0.sbone.de (strong-aiccu0.sbone.de [IPv6:fde9:577b:c1a9:f491::2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 4C6FF2D029D8; Sat, 21 Dec 2024 16:34:26 +0000 (UTC) Date: Sat, 21 Dec 2024 16:34:25 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mark Johnston cc: freebsd-net@freebsd.org Subject: Re: per-FIB socket binding In-Reply-To: Message-ID: <4p5o59s4-5p70-0775-1479-990o1s5po7r2@yvfgf.mnoonqbm.arg> References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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=US-ASCII; format=flowed X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[zabbadoz.net,none]; R_DKIM_ALLOW(-0.20)[zabbadoz.net:s=20240622]; R_SPF_ALLOW(-0.20)[+ip6:2003:a:140a:2200:6:594:fffe:19]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:3320, ipnet:2003::/19, country:DE]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[zabbadoz.net:+] X-Rspamd-Queue-Id: 4YFqcq6qR4z4L0g X-Spamd-Bar: --- On Tue, 17 Dec 2024, Mark Johnston wrote: > Lately I've been working on adding FIB awareness to bind(2) and inpcb lookup. > Below I'll describe the project a bit. Any feedback/comments/suggestions would > be appreciated. > > Today, a TCP or UDP socket can receive connections or datagrams from any FIB. SCTP? > Any thoughts/comments? How much use are FIBs still these days? 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. I wonder if anyone on FreeBSD is using FIBs to actually have multi-FIB 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). 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). 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). /bz -- Bjoern A. Zeeb r15:7