1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <linux/bpf.h> 4 #include <bpf/bpf_helpers.h> 5 #include "bpf_misc.h" 6 7 __noinline 8 int subprog(struct __sk_buff *skb) 9 { 10 int ret = 1; 11 12 __sink(ret); 13 return ret; 14 } 15 16 SEC("tc") 17 int entry_tc(struct __sk_buff *skb) 18 { 19 return subprog(skb); 20 } 21 22 char __license[] SEC("license") = "GPL"; 23