Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp415416rwo; Tue, 1 Aug 2023 20:18:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyWQxISZCVOrgkI0TeACTtSHBq29cKHySAtqjlq0PFiXM3M936Dk1L4l20eQSR8kKIurAo X-Received: by 2002:a05:6300:8082:b0:133:d1b:a880 with SMTP id ap2-20020a056300808200b001330d1ba880mr15288617pzc.23.1690946319217; Tue, 01 Aug 2023 20:18:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690946319; cv=pass; d=google.com; s=arc-20160816; b=NTrlihniCyUBApELSHr2HXDAF/6DZWSb8BhGBNkyldTWZ/mfKpBJzLJvaTnnjeuYLq ILCldjuOY5DNCYfAwcXRqBT1pQjMBNDqo8r6UkFemVcaGwVcAjJfW10mHo2sxKxa+KRG ccXH0uBaJe2GMNiZGsilRjilmhGSAmuku00lKFVq+pEEOeuzKAEXhMMK/r2kJ9AXzlw7 vfKtrJgyCmixssEC7jMqDdPqO+ye87K9eCStUlPcoFf3mAokJTSuVJEITQfBVP4/tmON adjTLSrRGH/15eHvdC4zlRwaDBsW3kLkiBZK4IoomDCFUu2btgQOoO7RLyeTyRoQZJee HC2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=9JtlXZ36JouyBFOFuM9o4bzb6VjBwcrk4al28Co5Xjs=; fh=Mj+4PANxPadb/Og5UIAr79gmL2RbkRjchqAmDwCCjrw=; b=i759tWRJYeqLUSbsv1W3IF7vaq0Cz1WHw08pjCl4wMDuIXdoMyA4bMV+iwvLmdmt7e guWjNmSxkUMSNU4xOks6/MqZaYf+hby9I2OfPzdrtyHDX0c5uhLWO4mMNW8O7pMA8Gm8 pO6186g9l2E9OZh5ib5hrGcpWY3U0tszaQoTtifc+ApWzQ62ZSS5AROYXpwqeN43LrPq aE/tcNqU+mBM5C1hBxsU7oo/mMvSkS9+uYRrE+d0mcfW6SYvBKBZI78eoHNp5yfMHwj7 8e6bXRENkg3DBC2IVWBiUxknmcyhO7IwJ1Y/H4owtfDdq1KTDoMXe8ZiMLrcar39OAmc KB9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=K0TUP+s5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a637f47000000b00564514df661si4068452pgn.322.2023.08.01.20.18.18; Tue, 01 Aug 2023 20:18:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=K0TUP+s5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231396AbjHBCnW (ORCPT + 99 others); Tue, 1 Aug 2023 22:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjHBCnU (ORCPT ); Tue, 1 Aug 2023 22:43:20 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2047.outbound.protection.outlook.com [40.107.104.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22D361BFD; Tue, 1 Aug 2023 19:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RyZ8Xpr3tr3nd35BgWuo+p277WY3H9uXIgPEbkQJrjqWe31CCjz1foFnPE7DOHW9180J72OrMRlZIyLjDM4CLE+0aeYWaDrdEFrSkRwUaUALHEks30iue7vNIiidTKTWe9FRVh8nYCThOtjfx4b9xkkZxsB4pGp2TVmNbScIEvKghe2PG3fKtPqnTgzG1jwWgmZPHJeC0K/FT4fLsOitGma6qiKmxCikLYbawiiBZOmdhkS9W9MXUWYygwMnBeuZeQ8HGz8lFSBeqKrQdfvZQW/5yRVWSbdkbLS+gOWiJhxd/eZZ3tWI7Eu2SuY16tfILaBYnevomhnFv+u63t3ErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9JtlXZ36JouyBFOFuM9o4bzb6VjBwcrk4al28Co5Xjs=; b=f0cJj4Z8HSuYZz5EYl63OgRGprHtCL+1eZtTwe4avx49HIQCy2zRgWH86v6efP7pAdtnDcjqPAuyU+ui7ddVW37eRZR2Cs608oIJFGUEqUzQe7I/9CJqhafdPLiAvSjK83XebXnPw3wJaQgYLaqor3TJmkH25C0L97fu8gjPnecxUAgKP6tJ+Tq+Gl/q5DhirBxiG2N7KxqS4IxO5hgbT3k60onImOrt1Z/GnLvE5f7/BmM/gSqNWEPXJ3jY+QkDRsF5M+IxHpiIrb1MLL4s4c4wEu1880X9sVS9jORQDJwRlDPDdQa37xtp+oQ0QQ2yKTaVKTElZo7o1APGFmLJqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9JtlXZ36JouyBFOFuM9o4bzb6VjBwcrk4al28Co5Xjs=; b=K0TUP+s5op7RSwycZrNduV2qvECsBQd/QcgAAqUo2B0gep9D2TLm7FkT5346MyVSN1fnXnZVpGIqog2Lrp5MYFRwJYg4XwbQmkWAArNf6ZGQJvi6UCg/SCMyJbSeceZmdG6SHrUHUOk9zY4Zh/u19j9Kh1Q1zSNSVarDAgq9UB4= Received: from AM5PR04MB3139.eurprd04.prod.outlook.com (2603:10a6:206:8::20) by AS8PR04MB9094.eurprd04.prod.outlook.com (2603:10a6:20b:445::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.45; Wed, 2 Aug 2023 02:43:16 +0000 Received: from AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e]) by AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e%4]) with mapi id 15.20.6631.045; Wed, 2 Aug 2023 02:43:16 +0000 From: Wei Fang To: Jakub Kicinski CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , Shenwei Wang , Clark Wang , "ast@kernel.org" , "daniel@iogearbox.net" , "hawk@kernel.org" , "john.fastabend@gmail.com" , "netdev@vger.kernel.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" Subject: RE: [PATCH V3 net-next] net: fec: add XDP_TX feature support Thread-Topic: [PATCH V3 net-next] net: fec: add XDP_TX feature support Thread-Index: AQHZw3VFF5NSBizeREOxLxVc18wksa/V/2KAgABLGEA= Date: Wed, 2 Aug 2023 02:43:16 +0000 Message-ID: References: <20230731060025.3117343-1-wei.fang@nxp.com> <20230801145723.7ddc2dba@kernel.org> In-Reply-To: <20230801145723.7ddc2dba@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM5PR04MB3139:EE_|AS8PR04MB9094:EE_ x-ms-office365-filtering-correlation-id: 742df579-b87d-4436-cd29-08db93023937 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Cb1mNr2EVluyP0p439Di7axCTZGmWLxD9NW5R/wrZlpxGzBViNgAC0kLACPHQiiNs5PEhoRaPJtKjJ1+KcVcXQZVLE21G6E7Yq3tQGQJa0OPo7+ecsNyuC8CY5nvLq6NbM0gEH5thi7QVENAdpvNgBTdsoN3Gey5X3Dc2n+7ijT8wMUUZV4o5fgv4MNKKySbLnq3qFPsikwZG7d6ld8TQt8aoYdEqikJ1sjrmXTebYNs7PJYqYGbWarazq34YsqHZegScHZT4UIFUp+QpiGquMerKVO6tVCGFAjWrrdHXohHvOYqaFRArqCQfxDziDL6dmT5xUWeljh94eJGWc4pd1mO24gS5HKMPDxvuFGKDznm8zDyFAqMf+CNoFvO6XTn83k7+xAZr7O0Oa7btoxdoRY61rszu92ZSjRFTxwzsJk0RWP+5xsEqlCjeoucl9ANo7wO73VJHOgqUfHG7LapSD1Pvlth4A5azR5lgVzeitxpnyLy0z1MxcVfNUE4BVhBlpRFl/gehOCs6mzL1UmKEZFcZXOzTijoh+ulf8466MvhDikirQCzT2KUEciRE3PU4KgAu7k5cYEHpghzahdZVEIQbU+H0ElAzVrQPVSFY4byOt80CsJVrpYfrXRjTiCJ x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM5PR04MB3139.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(366004)(136003)(396003)(346002)(451199021)(55016003)(186003)(9686003)(316002)(86362001)(478600001)(122000001)(54906003)(38100700002)(76116006)(71200400001)(66946007)(66556008)(66476007)(66446008)(33656002)(64756008)(7696005)(6916009)(4326008)(6506007)(41300700001)(26005)(52536014)(8676002)(5660300002)(8936002)(4744005)(2906002)(38070700005)(7416002)(44832011)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OhV6Emw3PiPbLe4hFrUhkmiqXxlix3GLJ3xl52uhbAC+IafXAtmeKceyByBk?= =?us-ascii?Q?GKnqXyEb6DB4VwJ/1/qXQlkcXQsFLxws4wSWhp8dPAfUQxR2vQhduVtxZ+Nz?= =?us-ascii?Q?KuGmN+va6K3PCmSAdgVNTYRUouTwj0VPieFNKnK9c/8OmXeXon5Kedf8lyQ5?= =?us-ascii?Q?YeSZSH4iOMU9leGqyIWykWYQrgDqD5z8bmtKbzsSNFJLEPZ/U7xmCfayKWf0?= =?us-ascii?Q?bcPNyjUN0TL6z+F9JOYZB5jwQ9GWB9o18fSNClrm6wy4bO29WcJZdKTlgE/H?= =?us-ascii?Q?ne7HOLZEFbspkBU68jW5V3cJOFmBtnvMX8HhWUvCKIi82Q5yt7WpuwXPPyvk?= =?us-ascii?Q?Jsu7mVyMjx+JIxHcOg1gEi6csLRLzh30nnKZBclcvjCP42gorsUGMzDuDHtK?= =?us-ascii?Q?q7InCMLcNOKENi8iHQdjfO2j233BkvW2ZTgIfUP5Ls5XqM7RgjHI15sOXOIv?= =?us-ascii?Q?G1wGzlZXGbnlWegkgbKuej5C2sHMME/yVl+j+q/swpYp1kdYJuhCvA2wpEaq?= =?us-ascii?Q?9UwBjdCTsGimQPStYVKXyVs3+O9mtFpKNaI4k4sn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ii?Q?Rv6H1PDMbFLqlef8w6FkBrZp5PbFzb6pvp9nf9M9zLiTmn6Yytlkm+8f4Pef?= =?us-ascii?Q?b+WbEPNKleaxkiJ/Kf+KgNJvCfyV4Qk10vQud12yaqC0UHE9tvU3KBgUi5ro?= =?us-ascii?Q?SJaTvI4PdHy7m5y0ZaI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM5PR04MB3139.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 742df579-b87d-4436-cd29-08db93023937 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2023 02:43:16.2204 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5aTxNIMmm9ZFN8zvjujoh9PhKXvbtelQiTx1y2LbpD5Jninbs98Ns1zCFh6c8BQHTRa2nnkpqlf4HAbW8AJq1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9094 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > Subject: Re: [PATCH V3 net-next] net: fec: add XDP_TX feature support >=20 > On Mon, 31 Jul 2023 14:00:25 +0800 Wei Fang wrote: > > case XDP_TX: > > + err =3D fec_enet_xdp_tx_xmit(fep->netdev, xdp); > > + if (err) { > > + ret =3D FEC_ENET_XDP_CONSUMED; > > + page =3D virt_to_head_page(xdp->data); > > + page_pool_put_page(rxq->page_pool, page, sync, true); >=20 > The error path should call trace_xdp_exception(). Thanks for your reminder, it made me realize that the error processing of other XDP actions also needs to add exception tracing. I'll add the excepti= on tracing for XDP_TX in V4 patch, and add the tracing for other XDP actions i= n a separate patch.