From nobody Fri Jan 27 09:09:37 2023 X-Original-To: dev-commits-src-all@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 4P3Bbj5vw3z3b4sw; Fri, 27 Jan 2023 09:09:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P3Bbj5N8Bz3tK2; Fri, 27 Jan 2023 09:09:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674810577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=spLFuFz/s7l6/Oz9/Khw6TgGLjl4hFumgAaB1XU+/Ys=; b=jwosYbScuTrwaV4vN9+T/BmeXxe8rK9vZsa5fjqouhyPvJZb+g+6LkxvY7TSE8Q4fcvWg4 UvXVqry0pyzz2Jg8h/zmuaCl2AQ7Iqzvr5NYVX+kzY6XrlvBFQLlRioVq0JR5twuiQQDrI HAxclTcm8j5wN7qWalAbmpgtyeFYLYIbQSqyC1cDduem7RkbFaWY/RmjI8Kp945QY5lzsG uTDPFLrgqWLOllY57NRbWOzgdi6aOgquepFzMCSej1R1iiozDHdRv8Rp41oSknOzukDn9Z Ux3XX8YhJu6hZeYIRa+jkFoL7vkRHc3L1MFrgPNJBL8b+SVh0GuwxtLQ5OCP7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674810577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=spLFuFz/s7l6/Oz9/Khw6TgGLjl4hFumgAaB1XU+/Ys=; b=VApxpEvX6xZsh+9ifqfnim2834LmcyERH4XNY5nOKfc+wwOHn8OeeDAmIy5BAjXuXYXSem /I4xmlfiohik1c9lORdlcBNRqcPC7Gg/2tSgDvGrq6Qp1tbK75G+vAKLDH9YI9LbfjLwLa rU+LEpBNjLAoqFzziwjchjO6rcitV1/e63wsV3A2DPwOFQbMeln7qSj0FsZefZ2ZOLwhhS GQ4tR+Y/MkIYvT566OJXvsRcfH0Uui1UQ1HXwRdo9LJDpyylFNkhX8CEHnRPSw0ioxK7F6 QvWRIB5EZlVkDYv3kB6v/j5utUKBSD05QjUPhoixKZTLt8BofUNPiUEA8pkv/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674810577; a=rsa-sha256; cv=none; b=nO6Ad3erTUBhV9OxH1eTtIoFj5cTPmMu7MrHmWevk0cTGiygnctaOSHMhUCep/RdEw7gqh q7CMSdekx8vgPeOlZpTIiE1pOcg0mJa1LbYwmWVZqsbX5NzKjlrdyDJ3mMKfJozqf6LqCC vDbuVGxf/kTiz8F42Te2u05P4bLYphDWs5KvGlnJ/5soe8qs5lBEaoqspKtEW7nCFxurlG U2EQWkudjAqNxoY3OPE0kmIzfs12Z6qRPXcM9pcC69L+AwumR10Pzbh4ZiT0ml0AbJq3Zd Bg2YlHajBiYHsQXi5jf1efLdJGrcCMu2vqZUwQuN7Z009F5ZjUDqH7pxyCfTFg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P3Bbj4LSWz13R5; Fri, 27 Jan 2023 09:09:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30R99bUu046394; Fri, 27 Jan 2023 09:09:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30R99bnq046393; Fri, 27 Jan 2023 09:09:37 GMT (envelope-from git) Date: Fri, 27 Jan 2023 09:09:37 GMT Message-Id: <202301270909.30R99bnq046393@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 84c7aaf0de12 - stable/13 - netlink: add netlink to GENERIC@amd64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 84c7aaf0de12809afc5847c9359eff9fd075f8ac Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=84c7aaf0de12809afc5847c9359eff9fd075f8ac commit 84c7aaf0de12809afc5847c9359eff9fd075f8ac Author: Alexander V. Chernikov AuthorDate: 2023-01-13 10:11:26 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-27 09:08:16 +0000 netlink: add netlink to GENERIC@amd64 Netlink is a communication protocol defined in RFC 3549. It is async, TLV-based protocol, providing 1-1 and 1-many communications between kernel and userland. Netlink is currently used in Linux kernel to modify, read and subscribe for nearly all networking states. Interface state, addresses, routes, firewall, rules, fibs, etc, are controlled via Netlink. Netlink support was added in D36002. It has got a number of improvements and first customers since then: * net/bird2 got netlink support, enabling route multipath in FreeBSD * netlink-based devd notifications are being worked on ( D37574 ). * linux(4) fully supports and depends on Netlink Enabling Netlink in GENERIC targets two goals. The first one is to provide stability for the third-party userland applications, so they can rely on the fact that netlink always exists since 14.0 and potentially 13.2. Loadable module makes life of the app delepers harder. For example, `net/bird2` can be either build with netlink or rtsock support, but not both. The second goal is to enable gradual conversion of the base userland tools to use netlink(4) interfaces. Converting tools like netstat (D36529), route, ifconfig one-by-one simplifies testing and addressing the feedback. Othewise, switching all base to use netlink at once may be too big of a leap. This change targets amd64, the other architectures will follow soon. Differential Revision: https://reviews.freebsd.org/D37783 (cherry picked from commit 692e19cf519578176d51d4c1001b01b1f355c1de) --- sys/amd64/conf/GENERIC | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC index 9a02a7127955..41d1e57b7dca 100644 --- a/sys/amd64/conf/GENERIC +++ b/sys/amd64/conf/GENERIC @@ -31,6 +31,7 @@ options VIMAGE # Subsystem virtualization, e.g. VNET options INET # InterNETworking options INET6 # IPv6 communications protocols options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 +options NETLINK # netlink(4) support options ROUTE_MPATH # Multipath routing support options FIB_ALGO # Modular fib lookups options TCP_OFFLOAD # TCP offload