]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Merge branch 'libbpf-support-more-map-options'
authorDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 04:42:29 +0000 (21:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 04:45:17 +0000 (21:45 -0700)
Craig Gallek says:

====================
libbpf: support more map options

The functional change to this series is the ability to use flags when
creating maps from object files loaded by libbpf.  In order to do this,
the first patch updates the library to handle map definitions that
differ in size from libbpf's struct bpf_map_def.

For object files with a larger map definition, libbpf will continue to load
if the unknown fields are all zero, otherwise the map is rejected.  If the
map definition in the object file is smaller than expected, libbpf will use
zero as a default value in the missing fields.
====================

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge