[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <594860DE.20205@iogearbox.net>
Date: Tue, 20 Jun 2017 01:40:14 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>,
netdev@...r.kernel.org
CC: davem@...emloft.net, kafai@...com, netoptimizer@...uer.com,
oss-drivers@...ronome.com
Subject: Re: [RFC net-next 7/8] xdp: add reporting of offload mode
On 06/17/2017 01:57 AM, Jakub Kicinski wrote:
> Extend the XDP_ATTACHED_* values to include offloaded mode.
> Let drivers report whether program is installed in the driver
> or the HW by changing the prog_attached field from bool to
> u8 (type of the netlink attribute).
>
> Exploit the fact that the value of XDP_ATTACHED_DRV is 1,
> therefore since all drivers currently assign the mode with
> double negation:
> mode = !!xdp_prog;
> no drivers have to be modified.
>
> Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Acked-by: Daniel Borkmann <daniel@...earbox.net>
Powered by blists - more mailing lists