[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9a6478bf-f1d7-6dd7-f9b7-72d48d5d83ac@iogearbox.net>
Date: Tue, 31 Jul 2018 02:05:09 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>,
alexei.starovoitov@...il.com
Cc: oss-drivers@...ronome.com, netdev@...r.kernel.org,
bjorn.topel@...el.com
Subject: Re: [PATCH bpf] net: xsk: don't return frames via the allocator on
error
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 the way
> back to the driver, so there is no need to call
> xdp_return_buff(). Driver will recycle the frame anyway
> after seeing that error happened.
>
> Fixes: 173d3adb6f43 ("xsk: add zero-copy support for Rx")
> Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Applied to bpf, thanks Jakub!
Powered by blists - more mailing lists