Draft: n-acd: runtime eBPF support detection
Summary
Previously, eBPF support was enabled/disabled via a compile-time flag based on whether we expect the system to support it or not.
This MR makes it so that n-acd always attempts to use eBPF, and skips it if it isn't possible to use it (e.g. due to missing capabilities).
Purpose
This MR is not created with the intention of merging it into NM codebase, but rather for discussion and reviews before it is submitted upstream to the n-acd project.
Checklist
Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:
-
the subject for all commits is concise and explicative -
the message for all commits explains the reason for the change -
the source is properly formatted -
any relevant documentation is up to date -
you have added unit tests if applicable -
the NEWS file is updated when the change deserves to be mentioned, for example for new features, behavior changes, API deprecations, etc.