Backporting ebpf


neirac
 

 Hi, 

I just integrated changes from this commit for Kernel version 3.15

 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bd4cf0ed331a275e9bf5a49e6d0fd55dffc551b8

 

into Kernel version  3.10.0-514.21.1 that’s what Centos 7 uses out of the box.

Besides changes on a couple of drivers  most of the changes are isolated.

I’ll try to compile bcc in Centos 7 to test these  features:

 

AF_PACKET (libpcap/tcpdump, cls_bpf classifier, netfilter's xt_bpf, team driver's load-balancing mode…)

 

Kernel helpers

 

Are there any bcc tools in the old folder  to test these ?

 

Maybe is a lost of time backporting ebpf and the sane thing to do is just to use the newer kernels, but at least this helps to get familiar with the code.

 

The current code is in this GitHub repo

 

https://github.com/cneira/ebpf-backports/tree/master/linux-3.10.0-514.21.1.el7.x86_64

 

 

Bests

Join {iovisor-dev@lists.iovisor.org to automatically receive all group messages.