diff options
author | Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> | 2018-03-30 02:20:59 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-03-30 22:50:15 +0200 |
commit | f385178679b6561d2e717567d12e07c7f927ee59 (patch) | |
tree | 97578ab32a6848feb7f29972f58753febe01d0ce /kernel/sys_ni.c | |
parent | Merge branch 'bpf-sockmap-ingress' (diff) | |
download | linux-f385178679b6561d2e717567d12e07c7f927ee59.tar.xz linux-f385178679b6561d2e717567d12e07c7f927ee59.zip |
lib/scatterlist: add sg_init_marker() helper
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 <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions