diff options
author | Lorenzo Bianconi | 2020-07-14 15:56:41 +0200 |
---|---|---|
committer | Daniel Borkmann | 2020-07-16 17:00:32 +0200 |
commit | ce4dade7f12a8f3e7918184ac851d992f551805d (patch) | |
tree | e835407b974caae990b0cfbfab6adca49efb2184 /tools | |
parent | 4be556cf5aef416904743f2cee689351f91445b6 (diff) |
samples/bpf: xdp_redirect_cpu: Load a eBPF program on cpumap
Extend xdp_redirect_cpu_{usr,kern}.c adding the possibility to load
a XDP program on cpumap entries. The following options have been added:
- mprog-name: cpumap entry program name
- mprog-filename: cpumap entry program filename
- redirect-device: output interface if the cpumap program performs a
XDP_REDIRECT to an egress interface
- redirect-map: bpf map used to perform XDP_REDIRECT to an egress
interface
- mprog-disable: disable loading XDP program on cpumap entries
Add xdp_pass, xdp_drop, xdp_redirect stats accounting
Co-developed-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/aa5a9a281b9dac425620fdabe82670ffb6bbdb92.1594734381.git.lorenzo@kernel.org
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions