From: James Hilliard Date: Thu, 9 Jun 2022 06:36:29 +0000 (-0600) Subject: bpf: use __always_inline macro in restrict-ifaces.bpf.c X-Git-Tag: v252-rc1~842 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b948bc062700e69a35c98ef75008bd682476aec;p=thirdparty%2Fsystemd.git bpf: use __always_inline macro in restrict-ifaces.bpf.c This appears to be more reliable at inlining with some compilers. --- diff --git a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c index 347a3a8d215..32cde5c8e02 100644 --- a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c +++ b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c @@ -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;