RE: [PATCH v3 bpf-next 0/2] introduce xdp_init_buff/xdp_prepare_buff

2020-12-14 Thread Camelia Alexandra Groza
om; > alexander.du...@gmail.com; maciej.fijalkow...@intel.com; > sa...@kernel.org > Subject: [PATCH v3 bpf-next 0/2] introduce xdp_init_buff/xdp_prepare_buff > > Introduce xdp_init_buff and xdp_prepare_buff utility routines to initialize > xdp_buff data structure and remove duplicat

Re: [PATCH v3 bpf-next 0/2] introduce xdp_init_buff/xdp_prepare_buff

2020-12-14 Thread Martin Habets
On Sat, Dec 12, 2020 at 06:41:47PM +0100, Lorenzo Bianconi wrote: > Introduce xdp_init_buff and xdp_prepare_buff utility routines to initialize > xdp_buff data structure and remove duplicated code in all XDP capable > drivers. > > Changes since v2: > - precompute xdp->data as hard_start + headroom

[PATCH v3 bpf-next 0/2] introduce xdp_init_buff/xdp_prepare_buff

2020-12-12 Thread Lorenzo Bianconi
Introduce xdp_init_buff and xdp_prepare_buff utility routines to initialize xdp_buff data structure and remove duplicated code in all XDP capable drivers. Changes since v2: - precompute xdp->data as hard_start + headroom and save it in a local variable to reuse it for xdp->data_end and xdp->data