• Jesper Dangaard Brouer's avatar
    xdp: adjust xdp redirect tracepoint to include return error code · 4c03bdd7
    Jesper Dangaard Brouer authored
    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: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4c03bdd7
xdp.h 1.95 KB