Re: [PATCH v4 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-08 Thread John Fastabend
On 16-12-08 08:55 AM, Alexei Starovoitov wrote: > On Thu, Dec 08, 2016 at 10:02:37AM +0100, Daniel Borkmann wrote: >> On 12/08/2016 12:53 AM, Martin KaFai Lau wrote: >>> This patch allows XDP prog to extend/remove the packet >>> data at the head (like adding or removing header). It is >>> done by

Re: [PATCH v4 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-08 Thread Alexei Starovoitov
On Thu, Dec 08, 2016 at 10:02:37AM +0100, Daniel Borkmann wrote: > On 12/08/2016 12:53 AM, Martin KaFai Lau wrote: > >This patch allows XDP prog to extend/remove the packet > >data at the head (like adding or removing header). It is > >done by adding a new XDP helper bpf_xdp_adjust_head(). > > > >

Re: [PATCH v4 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-08 Thread Daniel Borkmann
On 12/08/2016 12:53 AM, Martin KaFai Lau wrote: This patch allows XDP prog to extend/remove the packet data at the head (like adding or removing header). It is done by adding a new XDP helper bpf_xdp_adjust_head(). It also renames bpf_helper_changes_skb_data() to bpf_helper_changes_pkt_data() t

[PATCH v4 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-07 Thread Martin KaFai Lau
This patch allows XDP prog to extend/remove the packet data at the head (like adding or removing header). It is done by adding a new XDP helper bpf_xdp_adjust_head(). It also renames bpf_helper_changes_skb_data() to bpf_helper_changes_pkt_data() to better reflect that XDP prog does not work on sk