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

2016-12-06 Thread Martin KaFai Lau
On Tue, Dec 06, 2016 at 09:35:31AM -0800, John Fastabend wrote: > On 16-12-03 07:17 PM, 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 v2 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-06 Thread John Fastabend
On 16-12-03 07:17 PM, 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_

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

2016-12-04 Thread Jesper Dangaard Brouer
On Sat, 3 Dec 2016 19:17:23 -0800 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_help

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

2016-12-04 Thread Daniel Borkmann
On 12/04/2016 04:17 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 v2 net-next 1/4] bpf: xdp: Allow head adjustment in XDP prog

2016-12-03 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