Re: [PATCH v2 bpf-next 1/2] lib/scatterlist: add sg_init_marker() helper
From: John Fastabend <john.fastabend@gmail.com>
Date: 2018-03-30 03:38:47
From: John Fastabend <john.fastabend@gmail.com>
Date: 2018-03-30 03:38:47
On 03/29/2018 05:20 PM, Prashant Bhole wrote:
sg_init_marker initializes sg_magic in the sg table and calls sg_mark_end() on the last entry of the table. This can be useful to avoid memset in sg_init_table() when scatterlist is already zeroed out For example: when scatterlist is embedded inside other struct and that container struct is zeroed out Suggested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Prashant Bhole <redacted> ---
Acked-by: John Fastabend <john.fastabend@gmail.com>