diff options
| author | Maciej Fijalkowski <[email protected]> | 2019-02-01 22:42:25 +0100 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-02-01 23:37:51 +0100 |
| commit | bbaf6029c49ccf2dc93d9564af58a20d125947a1 (patch) | |
| tree | d01db083bd2806709339c7a78bf82daf0fde26c8 /tools/perf/scripts/python/sctop.py | |
| parent | 7313798b144c5b945dc47502a233cabb7022cb70 (diff) | |
samples/bpf: Convert XDP samples to libbpf usage
Some of XDP samples that are attaching the bpf program to the interface
via libbpf's bpf_set_link_xdp_fd are still using the bpf_load.c for
loading and manipulating the ebpf program and maps. Convert them to do
this through libbpf usage and remove bpf_load from the picture.
While at it remove what looks like debug leftover in
xdp_redirect_map_user.c
In xdp_redirect_cpu, change the way that the program to be loaded onto
interface is chosen - user now needs to pass the program's section name
instead of the relative number. In case of typo print out the section
names to choose from.
Signed-off-by: Maciej Fijalkowski <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions