tools lib bpf: Add bpf_map__pin()
authorJoe Stringer <joe@ovn.org>
Thu, 26 Jan 2017 21:19:57 +0000 (13:19 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Jan 2017 19:20:06 +0000 (16:20 -0300)
commitb6989f35e80bf830f8dc97b74128d619faef0273
tree2c594241f77c1cbdab20eb1de42a224f72b85adf
parentf367540c8c13d65603c431e29a0b87a7db893d6c
tools lib bpf: Add bpf_map__pin()

Add a new API to pin a BPF map to the filesystem. The user can specify
the path full path within a BPF filesystem to pin the map.

Signed-off-by: Joe Stringer <joe@ovn.org>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: netdev@vger.kernel.org
Link: http://lkml.kernel.org/r/20170126212001.14103-3-joe@ovn.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h