From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE08CC636D3 for ; Sun, 12 Feb 2023 09:08:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbjBLJIH (ORCPT ); Sun, 12 Feb 2023 04:08:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjBLJIG (ORCPT ); Sun, 12 Feb 2023 04:08:06 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8C512F36 for ; Sun, 12 Feb 2023 01:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676192837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wcnMcgfIkYoPRGV997Pr1b4NEAun/DkLNXeP1OYpbPg=; b=doIvmjLWPi69GgUJf4sPo624sG/CVLetSChF66+2C9H6/tTyQdLps7OX+D5bXBf6O4Nu2p 62gBSx06pjIjExzZsi0klV08aKu5hlsHNj3GPw7PEDYF3hk+P2uZyLDmRAKigsst+eqLTm KKnpC14nNdv+K+6QpGf3W/MLBaapwog= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-206-1jKvNUifNY23Ouz8JzKKng-1; Sun, 12 Feb 2023 04:07:15 -0500 X-MC-Unique: 1jKvNUifNY23Ouz8JzKKng-1 Received: by mail-wm1-f72.google.com with SMTP id n7-20020a05600c3b8700b003dc55dcb298so5020894wms.8 for ; Sun, 12 Feb 2023 01:07:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wcnMcgfIkYoPRGV997Pr1b4NEAun/DkLNXeP1OYpbPg=; b=5pZ2n9TzFIWrFsaRs0tYeJb/NrYtVrGM1uUHLQ62NyZvnr9CLKHxNBXCIbYOejLFKR b3/QX2zpGI5mggy7uKTbmdADR+ofDYiSUdLIZ42ExX3xhnmw7d4WDlI80bR2UCGdwL2/ +yxS0vTAs+3i2ezjsm5BDWrQNNA0hH4y8uRo8sft2Iq/IKXy8BLAKolc27m4G5GiU+yc 9b+Xq7qK1hpQG/DNA7Fshq7+mjA1EDmL43pALipUvFI9FrnhAuBKK4VOwr6IDbDFX3Us QLVAZdrAGprL6BJXJv7fPEdK2jewk3wmQ8ftd4X4gkWF6ga1QfT7EzmIxBf7wh+TER3z immA== X-Gm-Message-State: AO0yUKUlmOt5vHqjUr8WNB7vmCQEHWE/08lZ7lrLW+Y4DxXcapUVqdwz 38r5b1mDpu8khXFLK2gJyyc6OBa+Px0PaRFfCU/WYwOALB20wJ9ui6QziD+E0NysfZGFpyeqdr6 053VHgro3u4RR X-Received: by 2002:a05:600c:4d09:b0:3df:e549:bd27 with SMTP id u9-20020a05600c4d0900b003dfe549bd27mr18601076wmp.6.1676192834648; Sun, 12 Feb 2023 01:07:14 -0800 (PST) X-Google-Smtp-Source: AK7set9ujDcuiMwp9QyR9Os39AOaQiwc+K/XDPSpOS4KnPtl9gg0vJQLS56ufc4n29Q4MTNJ2wtJng== X-Received: by 2002:a05:600c:4d09:b0:3df:e549:bd27 with SMTP id u9-20020a05600c4d0900b003dfe549bd27mr18601062wmp.6.1676192834398; Sun, 12 Feb 2023 01:07:14 -0800 (PST) Received: from localhost (net-188-216-77-84.cust.vodafonedsl.it. [188.216.77.84]) by smtp.gmail.com with ESMTPSA id z4-20020a05600c220400b003dfe8c4c497sm13680055wml.39.2023.02.12.01.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 01:07:13 -0800 (PST) Date: Sun, 12 Feb 2023 10:07:11 +0100 From: Lorenzo Bianconi To: Lorenzo Bianconi Cc: bpf@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, horatiu.vultur@microchip.com, UNGLinuxDriver@microchip.com Subject: Re: [PATCH bpf-next] net: lan966x: set xdp_features flag Message-ID: References: <01f4412f28899d97b0054c9c1a63694201301b42.1676055718.git.lorenzo@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KCRzVampMKCckIPO" Content-Disposition: inline In-Reply-To: <01f4412f28899d97b0054c9c1a63694201301b42.1676055718.git.lorenzo@kernel.org> Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org --KCRzVampMKCckIPO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Set xdp_features netdevice flag if lan966x nic supports xdp mode. >=20 > Signed-off-by: Lorenzo Bianconi > --- > drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/driv= ers/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 *lan966= x, u32 p, > =20 > port->phylink =3D phylink; > =20 > + if (lan966x->fdma) > + dev->xdp_features =3D NETDEV_XDP_ACT_BASIC | > + NETDEV_XDP_ACT_REDIRECT | > + NETDEV_XDP_ACT_NDO_XMIT; > + > err =3D 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? Regards, Lorenzo > --=20 > 2.39.1 >=20 --KCRzVampMKCckIPO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCY+isPgAKCRA6cBh0uS2t rJW0AQCIwl3rJF7AXotFgyQiHPiZ+KrH2dc3Nkkxg8u1KUO3ngEAhR3xyPnqfRvm Z5MO6IiVENBWPKSnV0+1XHNk1aIx3Q8= =UPwj -----END PGP SIGNATURE----- --KCRzVampMKCckIPO--