]> 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)
commit661bb1356988f6249709c861972ff1646cbe2514
treedb13337e93443d1dca5cb7cd0d7480aa6862f5d6
parentcfa6edeeb2ffe14906eec89d34fbcfefc56763cf
parent08e905d43a521d617a22f2dfad24a6ec6f75837c
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>