Re: [PATCH v5 bpf-next 0/2] introduce xdp_init_buff/xdp_prepare_buff
From: Marcin Wojtas <hidden>
Date: 2020-12-24 07:38:25
Also in:
bpf
Hi Lorenzo, wt., 22 gru 2020 o 22:13 Lorenzo Bianconi [off-list ref] napisał(a):
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 v4: - fix xdp_init_buff/xdp_prepare_buff (natural order is xdp_init_buff() first and then xdp_prepare_buff()) Changes since v3: - use __always_inline instead of inline for xdp_init_buff/xdp_prepare_buff - add 'const bool meta_valid' to xdp_prepare_buff signature to avoid overwriting data_meta with xdp_set_data_meta_invalid() - introduce removed comment in bnxt driver 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_meta in xdp_prepare_buff() Changes since v1: - introduce xdp_prepare_buff utility routine Lorenzo Bianconi (2): net: xdp: introduce xdp_init_buff utility routine net: xdp: introduce xdp_prepare_buff utility routine Acked-by: Shay Agroskin <redacted> Acked-by: Martin Habets <redacted> Acked-by: Camelia Groza <redacted>
For Marvell mvpp2: Acked-by: Marcin Wojtas <redacted> Thanks, Marcin