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:
3
README
3
README
@@ -42,7 +42,8 @@ REQUIREMENTS:
|
|||||||
≥ 4.17 for cgroup-bpf socket address hooks and /sys/power/resume_offset
|
≥ 4.17 for cgroup-bpf socket address hooks and /sys/power/resume_offset
|
||||||
≥ 4.20 for PSI (used by systemd-oomd)
|
≥ 4.20 for PSI (used by systemd-oomd)
|
||||||
≥ 5.2 for cgroup freezer and new mount API
|
≥ 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
|
≥ 5.4 for pidfd and signed Verity images
|
||||||
|
|
||||||
⛔ Kernel versions below 5.4 ("minimum baseline") are not supported at all,
|
⛔ Kernel versions below 5.4 ("minimum baseline") are not supported at all,
|
||||||
|
@@ -1069,12 +1069,8 @@ int manager_enumerate(Manager *m) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_error_errno(r, "Could not enumerate neighbors: %m");
|
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);
|
r = manager_enumerate_nexthop(m);
|
||||||
if (r == -EOPNOTSUPP || (r == -EINVAL && mac_selinux_enforcing()))
|
if (r < 0)
|
||||||
log_debug_errno(r, "Could not enumerate nexthops, ignoring: %m");
|
|
||||||
else if (r < 0)
|
|
||||||
return log_error_errno(r, "Could not enumerate nexthops: %m");
|
return log_error_errno(r, "Could not enumerate nexthops: %m");
|
||||||
|
|
||||||
r = manager_enumerate_routes(m);
|
r = manager_enumerate_routes(m);
|
||||||
|
Reference in New Issue
Block a user