Re: [PATCH V4 net-next 7/9] net: ena: introduce XDP redirect implementation

2020-12-07 Thread Shay Agroskin
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

Re: [PATCH V4 net-next 7/9] net: ena: introduce XDP redirect implementation

2020-12-05 Thread Jakub Kicinski
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

[PATCH V4 net-next 7/9] net: ena: introduce XDP redirect implementation

2020-12-04 Thread akiyano
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.