Thread (7 messages) 7 messages, 3 authors, 2018-03-30

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

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help