OSDN Git Service

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)
commitd433b3f3e899b411ee3a9c07f07c45f84a2f450e
treedb13337e93443d1dca5cb7cd0d7480aa6862f5d6
parentd009313c99ba575b65a944fe2c683c6346ea1721
parentfe9b5f774b28143dcc2957eadffefdca6171a26a
Merge branch 'libbpf-support-more-map-options'

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>