RE: [PATCH v5 bpf-next 1/2] net: xdp: introduce xdp_init_buff utility routine
From: John Fastabend <john.fastabend@gmail.com>
Date: 2020-12-29 05:40:08
Also in:
bpf
From: John Fastabend <john.fastabend@gmail.com>
Date: 2020-12-29 05:40:08
Also in:
bpf
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 <lorenzo@kernel.org> ---
Seems like a nice bit of cleanup. I spot checked math in a few drivers LGTM. Acked-by: John Fastabend <john.fastabend@gmail.com>