diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-11 20:29:04 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-14 23:36:29 +0100 |
commit | daffc5a2e6f4bf4f99b00e183117920e321b6763 (patch) | |
tree | 30fb6e39546cc240144e66f3b4fa4d555d7aa6fa /usr | |
parent | 1110f3a9bcf394c06b81a98206aee9b6860653c8 (diff) |
bpf: hashtab: move attribute validation before allocation
Number of attribute checks are currently performed after hashtab
is already allocated. Move them to be able to split them out to
the check function later on. Checks have to now be performed on
the attr union directly instead of the members of bpf_map, since
bpf_map will be allocated later. No functional changes.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions