Re: [PATCH net-next 0/7] bpf: introduce direct packet access

2016-05-06 Thread David Miller
From: Alexei Starovoitov Date: Thu, 5 May 2016 19:49:08 -0700 > This set of patches introduce 'direct packet access' from > cls_bpf and act_bpf programs (which are root only). Series applied, thanks Alexei.

[PATCH net-next 0/7] bpf: introduce direct packet access

2016-05-05 Thread Alexei Starovoitov
This set of patches introduce 'direct packet access' from cls_bpf and act_bpf programs (which are root only). Current bpf programs use LD_ABS, LD_INS instructions which have to do 'if (off < skb_headlen)' for every packet access. It's ok for socket filters, but too slow for XDP, since single LD_AB