1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

bpf: use __always_inline macro in restrict-ifaces.bpf.c

This appears to be more reliable at inlining with some compilers.
This commit is contained in:
James Hilliard 2022-06-09 00:36:29 -06:00 committed by Luca Boccassi
parent 8239002226
commit 9b948bc062

View File

@ -20,7 +20,7 @@ struct {
#define DROP 0
#define PASS 1
static inline int restrict_network_interfaces_impl(const struct __sk_buff *sk) {
static __always_inline int restrict_network_interfaces_impl(const struct __sk_buff *sk) {
__u32 zero = 0, ifindex;
__u8 *lookup_result;