summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-11 20:29:03 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-14 23:36:29 +0100
commit1110f3a9bcf394c06b81a98206aee9b6860653c8 (patch)
treefb4c8c2a8d79c145ff7f997c7ddd6acdd3d51d4d /virt
parentfdde5f3b6ba402908b9e289626e6d817852e8300 (diff)
bpf: add map_alloc_check callback
.map_alloc callbacks contain a number of checks validating user- -provided map attributes against constraints of a particular map type. For offloaded maps we will need to check map attributes without actually allocating any memory on the host. Add a new callback for validating attributes before any memory is allocated. This callback can be selectively implemented by map types for sharing code with offloads, or simply to separate the logical steps of validation and allocation. 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 'virt')
0 files changed, 0 insertions, 0 deletions