From 9b948bc062700e69a35c98ef75008bd682476aec Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Thu, 9 Jun 2022 00:36:29 -0600 Subject: [PATCH] bpf: use __always_inline macro in restrict-ifaces.bpf.c This appears to be more reliable at inlining with some compilers. --- src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c index 347a3a8d21..32cde5c8e0 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;