Jakub Kicinski writes:
On Fri, 4 Dec 2020 14:11:13 +0200 akiy...@amazon.com wrote:
+ case XDP_REDIRECT:
+ xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
+ xdp_stat = &rx_ring->rx_stats.xdp_redirect;
+ break;
Don't you have to check if xdp_d
On Fri, 4 Dec 2020 14:11:13 +0200 akiy...@amazon.com wrote:
> + case XDP_REDIRECT:
> + xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
> + xdp_stat = &rx_ring->rx_stats.xdp_redirect;
> + break;
Don't you have to check if xdp_do_redirect() returned an error
From: Arthur Kiyanovski
This patch adds a partial support for the XDP_REDIRECT directive which
instructs the driver to pass the packet to an interface specified by the
program. The directive is passed to the driver by calling bpf_redirect()
or bpf_redirect_map() functions from the eBPF program.