diff options
author | Daniel T. Lee <[email protected]> | 2019-08-13 11:46:18 +0900 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-08-15 17:00:33 -0700 |
commit | 04949ccc273e14d28aa004ac6954af0898ca3d12 (patch) | |
tree | d7e65df295666cfa337b89056ded967d6fb9e96e /tools/perf/scripts/python/check-perf-trace.py | |
parent | a9436dca115d121d98e0b30f078f3294ce13fa18 (diff) |
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 <[email protected]>
Signed-off-by: Daniel T. Lee <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions