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 17:45:11 +01:00
committed by Luca Boccassi
parent 8239002226
commit 9b948bc062
@@ -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;