mirror of
				https://git.proxmox.com/git/mirror_iproute2
				synced 2025-10-31 06:17:02 +00:00 
			
		
		
		
	 0b7e3fc8f1
			
		
	
	
		0b7e3fc8f1
		
	
	
	
	
		
			
			I've added three examples to examples/bpf/ that demonstrate how one can
implement eBPF tail calls in tc with f.e. multiple levels of nesting.
That should act as a good starting point, but also as test cases for the
ELF loader and kernel. A real test suite for {f,m,e}_bpf is still to be
developed in future work.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
		
	
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			492 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			492 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| eBPF toy code examples (running in kernel) to familiarize yourself
 | |
| with syntax and features:
 | |
| 
 | |
|  - bpf_prog.c		-> Classifier examples with using maps
 | |
|  - bpf_shared.c		-> Ingress/egress map sharing example
 | |
|  - bpf_tailcall.c	-> Using tail call chains
 | |
|  - bpf_cyclic.c		-> Simple cycle as tail calls
 | |
|  - bpf_graft.c		-> Demo on altering runtime behaviour
 | |
| 
 | |
| User space code example:
 | |
| 
 | |
|  - bpf_agent.c		-> Counterpart to bpf_prog.c for user
 | |
|                            space to transfer/read out map data
 |