Forums  > Software  > Linux XDP  
     
Page 1 of 1
Display using:  

bullero


Total Posts: 71
Joined: Feb 2018
 
Posted: 2020-02-18 08:34
Anyone have done experiments with Linux XDP (eXpress Data Path)?

henderson


Total Posts: 180
Joined: Jul 2007
 
Posted: 2020-02-20 15:04
It is on my short list to try out soon.

doomanx


Total Posts: 89
Joined: Jul 2018
 
Posted: 2020-02-20 16:47
Had a look at it a while back. If you weren't doing kernel bypass already it would be a big time-saver in terms of development time.

did you use VWAP or triple-reinforced GAN execution?

bullero


Total Posts: 71
Joined: Feb 2018
 
Posted: 2020-02-21 09:20
@doomanx Do you happen to have any example code from XDP "stack" to user space memory?

edit: the only working examples seem to be ddos related msg filters Expressionless

henderson


Total Posts: 180
Joined: Jul 2007
 
Posted: 2020-02-21 15:39
It looks like there are some good examples at https://github.com/xdp-project/xdp-tutorial. There are some userspace interactions in the tracing*-* examples, example: https://github.com/xdp-project/xdp-tutorial/tree/master/tracing01-xdp-simple

steamed_hams


Total Posts: 5
Joined: Jun 2020
 
Posted: 2020-07-03 12:54
I've messed around with it a bit, just experimenting really but it's pretty sweet. Regarding code examples from the XDP stack to user space, would Rust do? There's a great library for this at https://github.com/redsift/redbpf and a corresponding example at https://blog.redsift.com/labs/putting-rust-in-the-kernel-with-ebpf/, which filters HTTP requests and puts them in a map for a user space program to read. The example is a bit stale, using a different, alpha version of the redbpf library, but depending on your familiarity with Rust it's not too painful to update the example to the current stable version of the lib. If not familiar with Rust though then let me know and I can post up some code if desired.
Previous Thread :: Next Thread 
Page 1 of 1