[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cfcc4936-086c-62f6-142f-1db1c42fb9d3@iogearbox.net>
Date: Mon, 13 Feb 2023 18:00:40 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Lorenzo Bianconi <lorenzo.bianconi@...hat.com>,
Lorenzo Bianconi <lorenzo@...nel.org>
Cc: bpf@...r.kernel.org, netdev@...r.kernel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
ast@...nel.org, andrii@...nel.org, horatiu.vultur@...rochip.com,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH bpf-next] net: lan966x: set xdp_features flag
On 2/12/23 10:07 AM, Lorenzo Bianconi wrote:
>> Set xdp_features netdevice flag if lan966x nic supports xdp mode.
>>
>> Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org>
>> ---
>> drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
>> index 580c91d24a52..b24e55e61dc5 100644
>> --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
>> +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
>> @@ -823,6 +823,11 @@ static int lan966x_probe_port(struct lan966x *lan966x, u32 p,
>>
>> port->phylink = phylink;
>>
>> + if (lan966x->fdma)
>> + dev->xdp_features = NETDEV_XDP_ACT_BASIC |
>> + NETDEV_XDP_ACT_REDIRECT |
>> + NETDEV_XDP_ACT_NDO_XMIT;
>> +
>> err = register_netdev(dev);
>> if (err) {
>> dev_err(lan966x->dev, "register_netdev failed\n");
>
> Since the xdp-features series is now merged in net-next, do you think it is
> better to target this patch to net-next?
Yes, that would be better given it's a pure driver change. I moved delegate
to netdev.
Thanks,
Daniel
Powered by blists - more mailing lists