diff options
author | Jesper Dangaard Brouer <[email protected]> | 2019-08-08 18:17:42 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-08-09 18:05:03 +0200 |
commit | a32a32cb26eb6291125e4eb49b569874ca9a53b5 (patch) | |
tree | c581f37cf8c26549b17f14eb81757d18562a182d /tools/perf/scripts/python/check-perf-trace.py | |
parent | 3783d43752eab247ed296ac8d5022484ed969151 (diff) |
samples/bpf: make xdp_fwd more practically usable via devmap lookup
This address the TODO in samples/bpf/xdp_fwd_kern.c, which points out
that the chosen egress index should be checked for existence in the
devmap. This can now be done via taking advantage of Toke's work in
commit 0cdbb4b09a06 ("devmap: Allow map lookups from eBPF").
This change makes xdp_fwd more practically usable, as this allows for
a mixed environment, where IP-forwarding fallback to network stack, if
the egress device isn't configured to use XDP.
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions