Re: [PATCH v2 bpf-next 2/2] net: xdp: introduce xdp_prepare_buff utility routine

2020-12-12 Thread Lorenzo Bianconi
On Dec 11, Saeed Mahameed wrote: > On Fri, 2020-12-11 at 20:28 +0100, Lorenzo Bianconi wrote: > > Introduce xdp_prepare_buff utility routine to initialize per- > > descriptor > > xdp_buff fields (e.g. xdp_buff pointers). Rely on xdp_prepare_buff() > > in > > all XDP capable drivers. > > > > Signed

Re: [PATCH v2 bpf-next 2/2] net: xdp: introduce xdp_prepare_buff utility routine

2020-12-11 Thread Saeed Mahameed
On Fri, 2020-12-11 at 20:28 +0100, Lorenzo Bianconi wrote: > Introduce xdp_prepare_buff utility routine to initialize per- > descriptor > xdp_buff fields (e.g. xdp_buff pointers). Rely on xdp_prepare_buff() > in > all XDP capable drivers. > > Signed-off-by: Lorenzo Bianconi > ... > +static inlin

[PATCH v2 bpf-next 2/2] net: xdp: introduce xdp_prepare_buff utility routine

2020-12-11 Thread Lorenzo Bianconi
Introduce xdp_prepare_buff utility routine to initialize per-descriptor xdp_buff fields (e.g. xdp_buff pointers). Rely on xdp_prepare_buff() in all XDP capable drivers. Signed-off-by: Lorenzo Bianconi --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 5 ++--- drivers/net/ethernet/broadcom