qosify-bpf: inline check_flow() to ensure that it is jited
authorFelix Fietkau <nbd@nbd.name>
Thu, 4 Nov 2021 19:35:07 +0000 (20:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 Nov 2021 19:35:07 +0000 (20:35 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
qosify-bpf.c

index 77b50e51a8d3ebcdf45935de170ff7b995fc17db..a40e75a20dc0576f8f716fd45af99924962c115a 100644 (file)
@@ -250,7 +250,7 @@ parse_l4proto(struct qosify_config *config, struct __sk_buff *skb,
        *dscp_out = *value;
 }
 
-static void
+static __always_inline void
 check_flow(struct qosify_config *config, struct __sk_buff *skb,
           uint8_t *dscp)
 {