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_tc(struct __sk_buff *skb) 9 { 10 int ret = 1; 11 12 __sink(skb); 13 __sink(ret); 14 return ret; 15 } 16 17 SEC("tc") 18 int entry_tc(struct __sk_buff *skb) 19 { 20 return subprog_tc(skb); 21 } 22 23 char __license[] SEC("license") = "GPL"; 24