[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 9 Sep 2020 17:37:14 +0200
From: Jesper Dangaard Brouer <brouer@...hat.com>
To: Maxim Mikityanskiy <maximmi@...dia.com>
Cc: brouer@...hat.com,
Björn Töpel <bjorn.topel@...el.com>,
Björn Töpel <bjorn.topel@...il.com>,
<ast@...nel.org>, <daniel@...earbox.net>, <netdev@...r.kernel.org>,
<bpf@...r.kernel.org>, Maxim Mikityanskiy <maximmi@...lanox.com>,
<magnus.karlsson@...el.com>, <davem@...emloft.net>,
<kuba@...nel.org>, <hawk@...nel.org>, <john.fastabend@...il.com>,
<intel-wired-lan@...ts.osuosl.org>
Subject: Re: [PATCH bpf-next 0/6] xsk: exit NAPI loop when AF_XDP Rx ring is
full
On Tue, 8 Sep 2020 13:32:01 +0300
Maxim Mikityanskiy <maximmi@...dia.com> wrote:
> From the driver API perspective, I would prefer to see a simpler API if
> possible. The current API exposes things that the driver shouldn't know
> (BPF map type), and requires XSK-specific handling. It would be better
> if some specific error code returned from xdp_do_redirect was reserved
> to mean "exit NAPI early if you support it". This way we wouldn't need
> two new helpers, two xdp_do_redirect functions, and this approach would
> be extensible to other non-XSK use cases without further changes in the
> driver, and also the logic to opt-in the feature could be put inside the
> kernel.
I agree.
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
Powered by blists - more mailing lists