RE: [PATCH v5 bpf-next 1/2] net: xdp: introduce xdp_init_buff utility routine

2020-12-28 Thread John Fastabend
Lorenzo Bianconi wrote: > Introduce xdp_init_buff utility routine to initialize xdp_buff fields > const over NAPI iterations (e.g. frame_sz or rxq pointer). Rely on > xdp_init_buff in all XDP capable drivers. > > Signed-off-by: Lorenzo Bianconi > --- Seems like a nice bit of cleanup. I spot chec

Re: [PATCH v5 bpf-next 1/2] net: xdp: introduce xdp_init_buff utility routine

2020-12-24 Thread Jesper Dangaard Brouer
On Tue, 22 Dec 2020 22:09:28 +0100 Lorenzo Bianconi wrote: > Introduce xdp_init_buff utility routine to initialize xdp_buff fields > const over NAPI iterations (e.g. frame_sz or rxq pointer). Rely on > xdp_init_buff in all XDP capable drivers. > > Signed-off-by: Lorenzo Bianconi > --- > driver

[PATCH v5 bpf-next 1/2] net: xdp: introduce xdp_init_buff utility routine

2020-12-22 Thread Lorenzo Bianconi
Introduce xdp_init_buff utility routine to initialize xdp_buff fields const over NAPI iterations (e.g. frame_sz or rxq pointer). Rely on xdp_init_buff in all XDP capable drivers. Signed-off-by: Lorenzo Bianconi --- drivers/net/ethernet/amazon/ena/ena_netdev.c| 3 +-- drivers/net/ethernet