From nobody Thu Jan 26 16:14:49 2023 X-Original-To: dev-commits-src-branches@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 4P2m4n5hclz3cD3D; Thu, 26 Jan 2023 16:14:49 +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 4P2m4n59rNz3mVs; Thu, 26 Jan 2023 16:14:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674749689; 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=uSVdwNmPo4KtdCBQXjzsgItbfVyhlPmU/P7n9jBJcOk=; b=ARFFxl4BH+FWTd9+ofRac2jhzBCPcMaZPyh3Q1wFXxxtzYxkNFmVGDfyUjQ3/NRcGpq2kH vytrAIFZIeUGRDgcQRPsD/O9cR+ZWBnhcmNdZi/+9ZiEI4L1yw8sxcegAhRW7FIq40cWA/ JHC3oSfLaGxLzKLo9/kq6lpDOSMbKn88aoKUda/UtESN3+xvO9a5SBrYaS9EiKZJ85jW3j dphPA59hPCff1iMw0obOfSWaIExs48GjraELboqxQk9x8rSh4nFiU2T1gFSDPS0mv7583d yidSIVvNTXhRcA+esZRQk5dq20pmYrMnFcCkrTCQQ8nLEViPkiN92FfzR9bIQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674749689; 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=uSVdwNmPo4KtdCBQXjzsgItbfVyhlPmU/P7n9jBJcOk=; b=fmaY50TLdSBEZnkgIAinWqMyyyEqMezo+pbJWV4HwZ/8jFr9JsOfWWm4D8CMYIQonlykHE 6QNjLSVyz41/oVk+/qgRODwSe06q51Ssp65V8fykGadqwGYzPt0i6aDPDcpuvmJGDeRqKM R3d8AjVsUOAMm8luLxAquUuXQgPPaQxIR1weSJsxp9ZhlFk7ctA2NOo2RHRGQsX3lPr9ty 8c+RWaBGUtfihjg1mgzvyXKZ/RtYRobDHBuCWwYmeiZM1v1E1Rl5RgitybvNBNzPAdUrEY AN6l5yIGF5+KS/KZZhxzcZgFh1kr0HOBhZXd5xentSzAAjTmmLvYKSSR45pbEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674749689; a=rsa-sha256; cv=none; b=Ez42gmcx0CmNW9m4zKK6KcyMn+0IB1lweuvcRkY7HH7GACxpRKH/OdJVLDhLZrJwkdfa0a p2Y9DAh4I4HJewCnpF1iTf7+mlp696VvNGbCRVsDYKaejJqSgQd3fMqr2wniq1IDYyySQd pFzS2n9UGEaU+iBLwh2S2Z0XfdXfSMnW23VrlzUuJVsmhAwF13dirJCBf9mLnjuINp0xB4 uyPjJLeYzqBn1t7+ta17ZfbaRyir9DVCGhig4IOU/JF4iVl4CkScudTVTUie+htmzwk13D iBBfXf/A3V+NjBD+CkZKpmvOAenALzenyjacCWWP0Q9FdnfRkiFAq4e93+su8w== 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 4P2m4n4FlTzbqY; Thu, 26 Jan 2023 16:14:49 +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 30QGEn23005741; Thu, 26 Jan 2023 16:14:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QGEn6R005740; Thu, 26 Jan 2023 16:14:49 GMT (envelope-from git) Date: Thu, 26 Jan 2023 16:14:49 GMT Message-Id: <202301261614.30QGEn6R005740@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: efbf827ae461 - stable/13 - netlink: allow netlink to be build in the kernel List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: efbf827ae461a66402acb191c036623ce1ee608f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=efbf827ae461a66402acb191c036623ce1ee608f commit efbf827ae461a66402acb191c036623ce1ee608f Author: Alexander V. Chernikov AuthorDate: 2022-12-22 14:51:36 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-26 15:50:25 +0000 netlink: allow netlink to be build in the kernel Differential Revision: https://reviews.freebsd.org/D37781 (cherry picked from commit c9313a0bad682351858e2e326cdb0f1d0bc2d1d8) --- sys/conf/NOTES | 3 +++ sys/conf/files | 12 ++++++++++++ sys/conf/options | 1 + sys/modules/netlink/Makefile | 2 +- sys/netlink/route/{route.c => rt.c} | 0 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 6002350c8286..a036d4fc6dd9 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -670,6 +670,9 @@ options IPSEC_SUPPORT # TLS framing and encryption/decryption of data over TCP sockets. options KERN_TLS # TLS transmit and receive offload +# Netlink kernel/user<>kernel/user messaging interface +options NETLINK + # # SMB/CIFS requester # NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV diff --git a/sys/conf/files b/sys/conf/files index 1dc36fd6f132..d1d317172c92 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4513,6 +4513,18 @@ netipsec/xform_ipcomp.c optional ipsec inet | ipsec inet6 netipsec/xform_tcp.c optional ipsec inet tcp_signature | \ ipsec inet6 tcp_signature | ipsec_support inet tcp_signature | \ ipsec_support inet6 tcp_signature +netlink/netlink_domain.c optional netlink +netlink/netlink_generic.c optional netlink +netlink/netlink_io.c optional netlink +netlink/netlink_message_parser.c optional netlink +netlink/netlink_message_writer.c optional netlink +netlink/netlink_module.c optional netlink +netlink/netlink_route.c optional netlink +netlink/route/iface_drivers.c optional netlink +netlink/route/iface.c optional netlink +netlink/route/neigh.c optional netlink +netlink/route/nexthop.c optional netlink +netlink/route/rt.c optional netlink netpfil/ipfw/dn_aqm_codel.c optional inet dummynet netpfil/ipfw/dn_aqm_pie.c optional inet dummynet netpfil/ipfw/dn_heap.c optional inet dummynet diff --git a/sys/conf/options b/sys/conf/options index e3154dfd4679..4ed0707e5c58 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -454,6 +454,7 @@ MBUF_STRESS_TEST MROUTING opt_mrouting.h NFSLOCKD PCBGROUP opt_pcbgroup.h +NETLINK PF_DEFAULT_TO_DROP opt_pf.h ROUTE_MPATH opt_route.h ROUTETABLES opt_route.h diff --git a/sys/modules/netlink/Makefile b/sys/modules/netlink/Makefile index eb166ac42ea6..791b953e5b84 100644 --- a/sys/modules/netlink/Makefile +++ b/sys/modules/netlink/Makefile @@ -4,7 +4,7 @@ KMOD= netlink SRCS = netlink_module.c netlink_domain.c netlink_io.c \ netlink_message_parser.c netlink_message_writer.c netlink_generic.c \ netlink_route.c route/iface.c route/iface_drivers.c route/neigh.c \ - route/nexthop.c route/route.c + route/nexthop.c route/rt.c SRCS+= opt_inet.h opt_inet6.h opt_route.h EXPORT_SYMS= diff --git a/sys/netlink/route/route.c b/sys/netlink/route/rt.c similarity index 100% rename from sys/netlink/route/route.c rename to sys/netlink/route/rt.c