![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 /* Copyright (c) 2020 Facebook */ 0003 #include <stddef.h> 0004 #include <linux/bpf.h> 0005 #include <bpf/bpf_helpers.h> 0006 0007 __attribute__ ((noinline)) 0008 void foo(struct __sk_buff *skb) 0009 { 0010 skb->tc_index = 0; 0011 } 0012 0013 SEC("tc") 0014 int test_cls(struct __sk_buff *skb) 0015 { 0016 foo(skb); 0017 return 0; 0018 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |