aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <[email protected]>2017-08-17 18:22:37 +0200
committerDavid S. Miller <[email protected]>2017-08-18 16:18:40 -0700
commit4c03bdd7b5c084c3c6973cb2419edac5363c051f (patch)
tree77e091a3b5de3c55433947ec41891ba2b1e52019 /tools/perf/util/scripting-engines/trace-event-python.c
parentd2cee2e5d0106abb5da25f393b3c50e0bb01f7f9 (diff)
xdp: adjust xdp redirect tracepoint to include return error code
The return error code need to be included in the tracepoint xdp:xdp_redirect, else its not possible to distinguish successful or failed XDP_REDIRECT transmits. XDP have no queuing mechanism. Thus, it is fairly easily to overrun a NIC transmit queue. The eBPF program invoking helpers (bpf_redirect or bpf_redirect_map) to redirect a packet doesn't get any feedback whether the packet was actually transmitted. Info on failed transmits in the tracepoint xdp:xdp_redirect, is interesting as this opens for providing a feedback-loop to the receiving XDP program. Signed-off-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions