angler-fishThe Vulnerability History Project

bpf: add helper for copying attrs to struct bpf_map

      All map types reimplement the field-by-field copy of union bpf_attr
members into struct bpf_map.  Add a helper to perform this operation.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    
commit bd475643d74e8ed78bfd36d941053b0e45974e8e
-1
+7 -1
+7 -1
+8 -1
+6 -1
+7 -1
+5 -1
-10
expand_less