Skip to content

skewballfox/xdp_af

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XDP_AF

Library for speedrunning AF_XDP ebpf programs. It handles the boilerplate configuration for making these sort of programs so you only have to implement the logic unique to your specific program. I'm still hacking on this myself, so breaking changes might happen.

Shoutout to quilkin for being one of the few rust-based AF_XDP programs in the wild. I spent so much time trying to understand your code I turned it into a library.

How to use this Crate

  • Implement the traits in xdp_af::traits.
  • pass the userspace_config to the builder.
  • tweak the configuration options wrapped by the builder
  • build

step 1 is very much a draw the rest of the owl kind of task. Most of the logic is going to be in the batch packet processing function. The ebpf module itself will probably be comparatively easy.

if you see anything missing which you think makes sense to implement for the majority of AF_XDP programs, or have some functionality in mind you think would be beneficial to implementors, feel free to open an issue or PR.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages