Re: [PATCH v2 bpf-next] xdp: introduce convert_to_xdp_buff utility routine

2020-05-28 Thread Lorenzo Bianconi
> On Wed, May 27, 2020 at 11:28:03AM +0200, Lorenzo Bianconi wrote: > > Introduce convert_to_xdp_buff utility routine to initialize xdp_buff > > fields from xdp_frames ones. Rely on convert_to_xdp_buff in veth xdp > > code > > > > Suggested-by: Jesper Dangaard Brouer > > Signed-off-by: Lorenzo Bi

Re: [PATCH v2 bpf-next] xdp: introduce convert_to_xdp_buff utility routine

2020-05-28 Thread Daniel Borkmann
On Wed, May 27, 2020 at 11:28:03AM +0200, Lorenzo Bianconi wrote: > Introduce convert_to_xdp_buff utility routine to initialize xdp_buff > fields from xdp_frames ones. Rely on convert_to_xdp_buff in veth xdp > code > > Suggested-by: Jesper Dangaard Brouer > Signed-off-by: Lorenzo Bianconi > ---

Re: [PATCH v2 bpf-next] xdp: introduce convert_to_xdp_buff utility routine

2020-05-27 Thread Jesper Dangaard Brouer
On Wed, 27 May 2020 11:28:03 +0200 Lorenzo Bianconi wrote: > Introduce convert_to_xdp_buff utility routine to initialize xdp_buff > fields from xdp_frames ones. Rely on convert_to_xdp_buff in veth xdp > code > > Suggested-by: Jesper Dangaard Brouer > Signed-off-by: Lorenzo Bianconi > --- > Cha

[PATCH v2 bpf-next] xdp: introduce convert_to_xdp_buff utility routine

2020-05-27 Thread Lorenzo Bianconi
Introduce convert_to_xdp_buff utility routine to initialize xdp_buff fields from xdp_frames ones. Rely on convert_to_xdp_buff in veth xdp code Suggested-by: Jesper Dangaard Brouer Signed-off-by: Lorenzo Bianconi --- Changes since v1: - rely on frame->data pointer to compute xdp->data_hard_start