aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-02 11:50:04 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-02 15:27:21 +0000
commit3091d980f581753f86df4155057b4ef23eb3ad27 (patch)
treea5e7bc57d8135e18f0ba5eb7bff59055afb4be79
parent4fd9e206716d019f46300aad40e5aa750ebb2e9d (diff)
downloadsrc-3091d980f581.tar.gz
src-3091d980f581.zip
netlink: add NETLINK to the DEFAULTS for each architecture
NETLINK is going to replace rtsock and a number of other ioctl/sysctl interfaces. In-base utilies such as route(8), netstat(8) and soon ifconfig(8) are being converted to use netlink sockets as a transport between kernel and userland. In the current configuration, it still possible have the kernel without NETLINK (`nooptions NETLINK`) and use the aforementioned utilies by buidling the world with `WITHOUT_NETLINK` src.conf knob. However, this approach does not cover the cases when person unintentionally builds a custom kernel without netlink and tries to use the standard userland. This change adds `option NETLINK` to the default options for each architecture, fixing the custom kernel issue. For arm, this change uses `std.armv6` and `std.armv7` (netlink already in) instead of DEFAULTS. Reviewed By: imp Differential Revision: https://reviews.freebsd.org/D39339
-rw-r--r--sys/amd64/conf/DEFAULTS2
-rw-r--r--sys/amd64/conf/GENERIC1
-rw-r--r--sys/arm/conf/std.armv61
-rw-r--r--sys/arm64/conf/DEFAULTS2
-rw-r--r--sys/arm64/conf/std.arm641
-rw-r--r--sys/i386/conf/DEFAULTS2
-rw-r--r--sys/i386/conf/GENERIC1
-rw-r--r--sys/powerpc/conf/DEFAULTS2
-rw-r--r--sys/powerpc/conf/GENERIC641
-rw-r--r--sys/riscv/conf/DEFAULTS2
-rw-r--r--sys/riscv/conf/GENERIC1
11 files changed, 11 insertions, 5 deletions
diff --git a/sys/amd64/conf/DEFAULTS b/sys/amd64/conf/DEFAULTS
index 733823e931d6..bc8a268e1ea4 100644
--- a/sys/amd64/conf/DEFAULTS
+++ b/sys/amd64/conf/DEFAULTS
@@ -25,3 +25,5 @@ options GEOM_PART_GPT
options CC_CUBIC # include CUBIC congestion control
options NEW_PCIB
+
+options NETLINK # netlink(4) support
diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC
index 46c901300371..67463e1013f8 100644
--- a/sys/amd64/conf/GENERIC
+++ b/sys/amd64/conf/GENERIC
@@ -31,7 +31,6 @@ 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
diff --git a/sys/arm/conf/std.armv6 b/sys/arm/conf/std.armv6
index 17087f30f4f1..eb61ca42bf9d 100644
--- a/sys/arm/conf/std.armv6
+++ b/sys/arm/conf/std.armv6
@@ -11,6 +11,7 @@ options CC_CUBIC # include CUBIC congestion control
options TCP_HHOOK # hhook(9) framework for TCP
device crypto # core crypto support
options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5
+options NETLINK # netlink(4) support
options SCTP_SUPPORT # Allow kldload of SCTP
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
diff --git a/sys/arm64/conf/DEFAULTS b/sys/arm64/conf/DEFAULTS
index db76185154e1..d55a957f4b5b 100644
--- a/sys/arm64/conf/DEFAULTS
+++ b/sys/arm64/conf/DEFAULTS
@@ -18,3 +18,5 @@ options CC_CUBIC # include CUBIC congestion control
options NEW_PCIB
options INTRNG
+
+options NETLINK # netlink(4) support
diff --git a/sys/arm64/conf/std.arm64 b/sys/arm64/conf/std.arm64
index ff2acef22a4d..6480ca6530e4 100644
--- a/sys/arm64/conf/std.arm64
+++ b/sys/arm64/conf/std.arm64
@@ -13,7 +13,6 @@ options INET # InterNETworking
options INET6 # IPv6 communications protocols
options CC_CUBIC # include CUBIC congestion control
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
diff --git a/sys/i386/conf/DEFAULTS b/sys/i386/conf/DEFAULTS
index 820ff0ff30f0..f4956183b85c 100644
--- a/sys/i386/conf/DEFAULTS
+++ b/sys/i386/conf/DEFAULTS
@@ -29,3 +29,5 @@ options CC_CUBIC # include CUBIC congestion control
device atpic
options NEW_PCIB
+
+options NETLINK # netlink(4) support
diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC
index 8e688bd6581b..475b584f366b 100644
--- a/sys/i386/conf/GENERIC
+++ b/sys/i386/conf/GENERIC
@@ -32,7 +32,6 @@ 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 TCP_HHOOK # hhook(9) framework for TCP
options TCP_OFFLOAD # TCP offload
diff --git a/sys/powerpc/conf/DEFAULTS b/sys/powerpc/conf/DEFAULTS
index 984283c5bf5f..b9ce3e41c123 100644
--- a/sys/powerpc/conf/DEFAULTS
+++ b/sys/powerpc/conf/DEFAULTS
@@ -16,3 +16,5 @@ options GEOM_PART_MBR
options CC_CUBIC # include CUBIC congestion control
options NEW_PCIB
+
+options NETLINK # netlink(4) support
diff --git a/sys/powerpc/conf/GENERIC64 b/sys/powerpc/conf/GENERIC64
index 6c40b031bee6..c4277983b66a 100644
--- a/sys/powerpc/conf/GENERIC64
+++ b/sys/powerpc/conf/GENERIC64
@@ -42,7 +42,6 @@ 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 TCP_OFFLOAD # TCP offload
options TCP_BLACKBOX # Enhanced TCP event logging
diff --git a/sys/riscv/conf/DEFAULTS b/sys/riscv/conf/DEFAULTS
index 363186d28904..dbf94f9e0335 100644
--- a/sys/riscv/conf/DEFAULTS
+++ b/sys/riscv/conf/DEFAULTS
@@ -18,3 +18,5 @@ options CC_CUBIC # include CUBIC congestion control
options NEW_PCIB
options INTRNG
+
+options NETLINK # netlink(4) support
diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC
index df7d680ff3ff..49e3f07c0f96 100644
--- a/sys/riscv/conf/GENERIC
+++ b/sys/riscv/conf/GENERIC
@@ -31,7 +31,6 @@ options INET # InterNETworking
options INET6 # IPv6 communications protocols
options TCP_HHOOK # hhook(9) framework for TCP
options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5
-options NETLINK # netlink(4) support
options ROUTE_MPATH # Multipath routing support
options TCP_OFFLOAD # TCP offload
options TCP_BLACKBOX # Enhanced TCP event logging