Re: [PATCH bpf] net: xsk: don't return frames via the allocator on error

2018-07-30 Thread Daniel Borkmann
On 07/28/2018 05:20 AM, Jakub Kicinski wrote: > xdp_return_buff() is used when frame has been successfully > handled (transmitted) or if an error occurred during delayed > processing and there is no way to report it back to > xdp_do_redirect(). > > In case of __xsk_rcv_zc() error is propagated all

Re: [PATCH bpf] net: xsk: don't return frames via the allocator on error

2018-07-30 Thread Björn Töpel
Den lör 28 juli 2018 kl 05:21 skrev Jakub Kicinski : > > xdp_return_buff() is used when frame has been successfully > handled (transmitted) or if an error occurred during delayed > processing and there is no way to report it back to > xdp_do_redirect(). > > In case of __xsk_rcv_zc() error is propag

[PATCH bpf] net: xsk: don't return frames via the allocator on error

2018-07-27 Thread Jakub Kicinski
xdp_return_buff() is used when frame has been successfully handled (transmitted) or if an error occurred during delayed processing and there is no way to report it back to xdp_do_redirect(). In case of __xsk_rcv_zc() error is propagated all the way back to the driver, so there is no need to call x