1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

network: assume nexthop is supported by the kernel

It is supported since kernel v5.3 (65ee00a9409f751188a8cdc0988167858eb4a536),
but our base line is now v5.4.
This commit is contained in:
Yu Watanabe
2025-02-17 04:54:50 +09:00
parent 7db71cd79f
commit 034b69d8b8
2 changed files with 3 additions and 6 deletions

3
README
View File

@@ -42,7 +42,8 @@ REQUIREMENTS:
≥ 4.17 for cgroup-bpf socket address hooks and /sys/power/resume_offset
≥ 4.20 for PSI (used by systemd-oomd)
≥ 5.2 for cgroup freezer and new mount API
≥ 5.3 for bounded loops in BPF program and keyring namespacing
≥ 5.3 for bounded loops in BPF program, keyring namespacing,
and nexthop support
≥ 5.4 for pidfd and signed Verity images
⛔ Kernel versions below 5.4 ("minimum baseline") are not supported at all,

View File

@@ -1069,12 +1069,8 @@ int manager_enumerate(Manager *m) {
if (r < 0)
return log_error_errno(r, "Could not enumerate neighbors: %m");
/* NextHop support is added in kernel v5.3 (65ee00a9409f751188a8cdc0988167858eb4a536),
* and older kernels return -EOPNOTSUPP, or -EINVAL if SELinux is enabled. */
r = manager_enumerate_nexthop(m);
if (r == -EOPNOTSUPP || (r == -EINVAL && mac_selinux_enforcing()))
log_debug_errno(r, "Could not enumerate nexthops, ignoring: %m");
else if (r < 0)
if (r < 0)
return log_error_errno(r, "Could not enumerate nexthops: %m");
r = manager_enumerate_routes(m);