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

2020-12-14 Thread Camelia Alexandra Groza
> -Original Message- > From: Lorenzo Bianconi > Sent: Saturday, December 12, 2020 19:42 > To: b...@vger.kernel.org; netdev@vger.kernel.org > Cc: da...@davemloft.net; k...@kernel.org; a...@kernel.org; > dan...@iogearbox.net; bro...@redhat.com; lorenzo.bianc...@redhat.com; > alexander.du...@

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