]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit555ae86f1e3d6f1265b4edf375032a5a0ccf1093
treedb13337e93443d1dca5cb7cd0d7480aa6862f5d6
parent77ce553c06d9c4f2d815f18be2975118ca359e0a
parentcf478212486fc38f0d02d01dc8da5064d6d5e9f7
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>