Netdev List
 help / color / mirror / Atom feed
* [bpf-next PATCH v3 0/2] bpftool support for sockmap use cases
@ 2018-10-15 18:19 John Fastabend
  2018-10-15 18:19 ` [bpf-next PATCH v3 1/2] bpf: bpftool, add support for attaching programs to maps John Fastabend
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Fastabend @ 2018-10-15 18:19 UTC (permalink / raw)
  To: jakub.kicinski, ast, daniel; +Cc: netdev

The first patch adds support for attaching programs to maps. This is
needed to support sock{map|hash} use from bpftool. Currently, I carry
around custom code to do this so doing it using standard bpftool will
be great.

The second patch adds a compat mode to ignore non-zero entries in
the map def. This allows using bpftool with maps that have a extra
fields that the user knows can be ignored. This is needed to work
correctly with maps being loaded by other tools or directly via
syscalls.

v3: add bash completion and doc updates for --mapcompat

---

John Fastabend (2):
      bpf: bpftool, add support for attaching programs to maps
      bpf: bpftool, add flag to allow non-compat map definitions


 tools/bpf/bpftool/Documentation/bpftool-prog.rst |   11 ++
 tools/bpf/bpftool/Documentation/bpftool.rst      |    6 +
 tools/bpf/bpftool/bash-completion/bpftool        |   21 ++++-
 tools/bpf/bpftool/main.c                         |    7 +-
 tools/bpf/bpftool/main.h                         |    3 -
 tools/bpf/bpftool/prog.c                         |  101 ++++++++++++++++++++++
 6 files changed, 142 insertions(+), 7 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-16  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-15 18:19 [bpf-next PATCH v3 0/2] bpftool support for sockmap use cases John Fastabend
2018-10-15 18:19 ` [bpf-next PATCH v3 1/2] bpf: bpftool, add support for attaching programs to maps John Fastabend
2018-10-15 18:19 ` [bpf-next PATCH v3 2/2] bpf: bpftool, add flag to allow non-compat map definitions John Fastabend
2018-10-15 18:26   ` Jakub Kicinski
2018-10-15 23:17 ` [bpf-next PATCH v3 0/2] bpftool support for sockmap use cases Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox