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


Alexei Starovoitov
 

On Fri, Jun 30, 2017 at 6:05 AM, carlos antonio neira bustos via
iovisor-dev <iovisor-dev@...> wrote:
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
that is just one patch.
you want to backport most of it to be usable.
I believe few redhat folks attempted to backport it to centos7, but
it's tedious.
centos8 has better chance to support bpf.


riya
 

Hi Carlos,

I was hoping to back port eBPF to kernel-3.10. Does the code here https://github.com/cneira/ebpf-backports/tree/master/linux-3.10.0-514.21.1.el7.x86_64 work with Linux kernel 3.10? 
Thanks,
Riya

On Fri, Jun 30, 2017 at 12:16 PM, Alexei Starovoitov via iovisor-dev <iovisor-dev@...> wrote:
On Fri, Jun 30, 2017 at 6:05 AM, carlos antonio neira bustos via
iovisor-dev <iovisor-dev@...> wrote:
>  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

that is just one patch.
you want to backport most of it to be usable.
I believe few redhat folks attempted to backport it to centos7, but
it's tedious.
centos8 has better chance to support bpf.
_______________________________________________
iovisor-dev mailing list
iovisor-dev@...
https://lists.iovisor.org/mailman/listinfo/iovisor-dev


neirac
 

Hi Ryanna,

That repository contains changes to add ebpf to the kernel shipped with Rhel 7.3. 
If you clone branch bpf_3.18_features that will give you a working kernel with ebpf features from  kernel version 3.18, that still needs to be tested. 
At this moment the master branch contains ebpf changes from  3.19 but I'm still working on this on my free time.
 
Bests

On Thu, Oct 12, 2017 at 5:32 PM, riya khanna <riyakhanna1983@...> wrote:
Hi Carlos,

I was hoping to back port eBPF to kernel-3.10. Does the code here https://github.com/cneira/ebpf-backports/tree/master/linux-3.10.0-514.21.1.el7.x86_64 work with Linux kernel 3.10? 
Thanks,
Riya

On Fri, Jun 30, 2017 at 12:16 PM, Alexei Starovoitov via iovisor-dev <iovisor-dev@...> wrote:
On Fri, Jun 30, 2017 at 6:05 AM, carlos antonio neira bustos via
iovisor-dev <iovisor-dev@...> wrote:
>  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

that is just one patch.
you want to backport most of it to be usable.
I believe few redhat folks attempted to backport it to centos7, but
it's tedious.
centos8 has better chance to support bpf.
_______________________________________________
iovisor-dev mailing list
iovisor-dev@...
https://lists.iovisor.org/mailman/listinfo/iovisor-dev