From nobody Mon Dec 23 10:29:01 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 4YGvQD2Vdkz5gYg1 for ; Mon, 23 Dec 2024 10:29:08 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward501b.mail.yandex.net (forward501b.mail.yandex.net [178.154.239.145]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YGvQC1Qyrz4GwB; Mon, 23 Dec 2024 10:29:07 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.ru header.s=mail header.b=eedLxOjc; spf=pass (mx1.freebsd.org: domain of bu7cher@yandex.ru designates 178.154.239.145 as permitted sender) smtp.mailfrom=bu7cher@yandex.ru; dmarc=pass (policy=none) header.from=yandex.ru Received: from mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net [IPv6:2a02:6b8:c10:2d9f:0:640:f6ce:0]) by forward501b.mail.yandex.net (Yandex) with ESMTPS id 2B52A60C19; Mon, 23 Dec 2024 13:29:03 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 1TTQxjFOiGk0-oxhBYvST; Mon, 23 Dec 2024 13:29:02 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1734949742; bh=t8Dei+rOQrIwuzaz2mt+OiRUtLzMbQwxhjin1yWZrGY=; h=In-Reply-To:To:From:Cc:Date:References:Subject:Message-ID; b=eedLxOjcXgcTHaZKCi1VJmxPrGGsaW+ixTDAIdEd/iO5bOFU5aCaTxSSrbsnJH0it QepbDN9Wi6qgiCCenKflWdVxQoq5zGbM1fqUMmxhyNHUrR2GSeTFkwEvN9qyH7zn0q 6wicaJSzbp8zX+rH3hY55VmZ9T3KqSaDpZBWEDlg= Message-ID: Date: Mon, 23 Dec 2024 13:29:01 +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 Thunderbird Subject: Re: per-FIB socket binding Content-Language: ru, en-US To: "Bjoern A. Zeeb" , Mark Johnston Cc: freebsd-net@freebsd.org References: <4p5o59s4-5p70-0775-1479-990o1s5po7r2@yvfgf.mnoonqbm.arg> From: "Andrey V. Elsukov" Autocrypt: addr=bu7cher@yandex.ru; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNJUFuZHJleSBWLiBFbHN1a292IDxidTdjaGVyQHlhbmRleC5ydT7CwHgEEwECACIFAkwB F1kCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEAHF6gQQyKF6qmYIAI6ekfm1VA4T vqankI1ISE6ku4jV7UlpIQlEbE7/8n3Zd6teJ+pGOQhN5qk8QE7utdPdbktAzi+x7LIJVzUw 4TywZLXGrkP7VKYkfg6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ed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.09 / 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)[yandex.ru,none]; R_SPF_ALLOW(-0.20)[+ip4:178.154.239.144/28]; R_DKIM_ALLOW(-0.20)[yandex.ru:s=mail]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[2a02:6b8:c10:2d9f:0:640:f6ce:0:received]; XM_UA_NO_VERSION(0.01)[]; FREEMAIL_FROM(0.00)[yandex.ru]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yandex.ru:+]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[yandex.ru]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:200350, ipnet:178.154.224.0/19, country:RU]; DWL_DNSWL_NONE(0.00)[yandex.ru:dkim] X-Rspamd-Queue-Id: 4YGvQC1Qyrz4GwB X-Spamd-Bar: ---- On 21.12.2024 19:34, Bjoern A. Zeeb wrote: > 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). Some might say that VNET is useless and should be removed instead. We have bhyve and old-style jails. Without VNET the kernel code will be robust and simple again, and easy for debugging. But 1st April is not yet, and someone will say nothing. FIBs are useful as is, but also can be used with "ipfw setfib" that make it irreplaceable. -- WBR, Andrey V. Elsukov