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