From nobody Fri Jan 13 10:42:22 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 4NtdKB5SC9z2p5Mn; Fri, 13 Jan 2023 10:42:22 +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 4NtdKB50Yxz3q99; Fri, 13 Jan 2023 10:42:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673606542; 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=DWQbhHicIgsK0LsnYNUIkukwCfvxnQfMPsAiJJPGm4I=; b=K71zH+26BEyNCavBO5CPgD12+hwLfUEmoiqNRGLa5VW2HnlN3HrzMHPVsPq/jQytSU8+Kq v8QULmLB2bSXbC0gB6Be5XCV0zhJ2itWNXd+Q8Yn9UPTFQq5iwSLg9knIdZok9evUo7YmM BkYPS2iHpb1aToaR8fReZdPAb+GWwcHP7l0+TliVT+kbPEHzBNj264bJHagz/dwHHAJskv dTKX5IyuHcrkZD8NsyqkkSHKU3L50nUy/c4pWdsjrZ4ABXWRmgKWnNVjxYWBtuQmHg83iM 7N23wEIpO8eKtMJ3NwsDyC7GIAUzqw3mia2r1k5HM2RWIa5ilQ77hfIJaMpZRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673606542; 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=DWQbhHicIgsK0LsnYNUIkukwCfvxnQfMPsAiJJPGm4I=; b=Ao73N/cj9AWbFENoNvrtNwvuu9mW56Q3nZsjWwGpetgoqFOuyHU+c7/i8eq3S75rj6qbo7 4JhDP6LwrXg2nsnu9oiLXxgu6/twhnr2bt6dXvsffX1KkCgUPmrVzFiP/B6NY8x3YjtnKD 6/R2K2VUjRsXN/ZapTr3kcaBfpZ//a8+eYde2qOHXM1MnIibqi+QsEpxVtEwmBjxKOIUNL Wdqdf2nAUHEdIuryU6hwMiMD6x0Jd0hpndhTP7UgQq7AEpV5v48G4GM4Z+TRc2zGimqE4R rKdJM5ZFH5gjx9BL8qy1HWKpmTB8o8InS6XAE5f5Nxl+HGZjogIMGYla9Au08w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673606542; a=rsa-sha256; cv=none; b=yW1djGzOcBLraC1zhACKlxJO25shdWdL49r65gVxf/A2sPsRR5/mOO4CttpFAbIa9A/tNK yJIauJuHhX7KIPFjKS27SpH8c9UMWUjhAWTxOeziiADPFXCauDRhpnx1feMi8iW4XTGziZ uP3iVSVDKV5G1nSCvwxuNjrUYRbHwpzURBNiX3bSwd31h0w21HN5ul/t/cWNJ/wIBdx3Gj dkGNwgHGcuUrUHbeycdyAIFn7JHkwJ2W8XOKIEWMljCNvFFA+CkJTqketGENzUgVaUCdKh NnYuDF+zWg7nWx4Xgsdvtf2fdL63M1Kg53Q43FlOv2XCOTk/E/ddLvaVwQgbHw== 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 4NtdKB43TTz14tG; Fri, 13 Jan 2023 10:42:22 +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 30DAgMAL023713; Fri, 13 Jan 2023 10:42:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30DAgMd2023712; Fri, 13 Jan 2023 10:42:22 GMT (envelope-from git) Date: Fri, 13 Jan 2023 10:42:22 GMT Message-Id: <202301131042.30DAgMd2023712@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 692e19cf5195 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 692e19cf519578176d51d4c1001b01b1f355c1de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=692e19cf519578176d51d4c1001b01b1f355c1de commit 692e19cf519578176d51d4c1001b01b1f355c1de Author: Alexander V. Chernikov AuthorDate: 2023-01-13 10:11:26 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-13 10:22:40 +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 --- sys/amd64/conf/GENERIC | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC index 9178abba36cc..56b881d80a52 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