diff options
author | Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> | 2018-08-03 10:58:12 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-10 17:12:20 +0300 |
commit | a8d5b4ab353738e16e5f9d21ab1e3d44b37983d0 (patch) | |
tree | 95dd573d43503f4b835b406bcef9a4909249a611 /drivers/net/veth.c | |
parent | dc2248220a4aa61560c95aca98d4162095bd7e8a (diff) | |
download | linux-a8d5b4ab353738e16e5f9d21ab1e3d44b37983d0.tar.xz |
xdp: Helper function to clear kernel pointers in xdp_frame
xdp_frame has kernel pointers which should not be readable from bpf
programs. When we want to reuse xdp_frame region but it may be read by
bpf programs later, we can use this helper to clear kernel pointers.
This is more efficient than calling memset() for the entire struct.
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/net/veth.c')
0 files changed, 0 insertions, 0 deletions