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:
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user