[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ebfdf775-51de-86a7-8de0-24875f994395@gmail.com>
Date: Thu, 29 Mar 2018 20:38:36 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>,
Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
"David S . Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v2 bpf-next 1/2] lib/scatterlist: add sg_init_marker()
helper
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@...earbox.net>
> Signed-off-by: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>
> ---
Acked-by: John Fastabend <john.fastabend@...il.com>
Powered by blists - more mailing lists