diff options
author | 2019-08-13 11:46:18 +0900 | |
---|---|---|
committer | 2019-08-15 17:00:33 -0700 | |
commit | 04949ccc273e14d28aa004ac6954af0898ca3d12 (patch) | |
tree | d7e65df295666cfa337b89056ded967d6fb9e96e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | tools: bpftool: compile with $(EXTRA_WARNINGS) (diff) | |
download | linux-dev-04949ccc273e14d28aa004ac6954af0898ca3d12.tar.xz linux-dev-04949ccc273e14d28aa004ac6954af0898ca3d12.zip |
tools: bpftool: add net attach command to attach XDP on interface
By this commit, using `bpftool net attach`, user can attach XDP prog on
interface. New type of enum 'net_attach_type' has been made, as stat ted at
cover-letter, the meaning of 'attach' is, prog will be attached on interface.
With 'overwrite' option at argument, attached XDP program could be replaced.
Added new helper 'net_parse_dev' to parse the network device at argument.
BPF prog will be attached through libbpf 'bpf_set_link_xdp_fd'.
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions