• J
    xdp: adjust xdp redirect tracepoint to include return error code · 4c03bdd7
    Jesper Dangaard Brouer 提交于
    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: NJesper Dangaard Brouer <brouer@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4c03bdd7
xdp.h 2.0 KB