Message ID | 20221108172105.3760656-1-shenwei.wang@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2842968wru; Tue, 8 Nov 2022 09:24:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM4CogPnd0/UKnY2kppNRnI7r7Wo4EY21o4hdIA3BKSm5vzpPbxhxe13vUeAhmUviRYAjas9 X-Received: by 2002:a05:6a00:2382:b0:56c:b4d3:9057 with SMTP id f2-20020a056a00238200b0056cb4d39057mr56934323pfc.40.1667928242520; Tue, 08 Nov 2022 09:24:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667928242; cv=pass; d=google.com; s=arc-20160816; b=hh6hxK8LSYDheTi0+A3TfvIvB06CGiQ/IoKoVu3CMUKyiOfAhlDG+hd1AGvj0E4tN7 x4XhBqy8W//Co7chpFsWhfo90BTx6CvNUcvTPjuZ4+2HhNwMJf1a5apKlQCIYB0PZElu hPCMkxALl63PLKdr456yRnBe2THP8ImNMwhtXUYCgUBcrMPB2FdjNRGlFv7FUzfpiQHB Z9FY24+Eeo1jvcxyKNNOeWsO4nIekIkLWB8mDoc8wmWjgyOi5JXAsy6pLyEk/XLNYU3U XeqY+j9kN6Vv9OI5qM8oMlCAWvJuxmo76B/PoZupymd/2ll+3/QC+oGmacj3PlEA4j8h tKZA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=iBopWqSQzCAPj6JgejAUQ9BnwQft7V19ynTbW2caEfc=; b=bLQKl5szyPHVi7Rju/tx7malZR32eMw0TGeGnK04Nf0+RIq1uuJYP0740IyYEVGq2X g2qP9ETeifC+7YSgMohOkgX8tvux/cw391HFUG325ucr74CA/ytalPUx2Hgl8j0J4k2Q PVFJDsqhpqpzuoszonWtUhZP7rUmOR9WmZWEy+IpLOtYfGffRe1Kas2Ph1v3sSs36wgL L7ywpj7Nof1bOdNMFeNAZoqqEvXBYVgXY/PYVGbOtktH7Zr3UcEfMLyzt2sylxLN9kaT tOYZUl+zXxIEt18weRr7F8w9ZfNLUxnNhtTf83qzPfpO2bLeF4599QWJvL11kMBfbhYN sV1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=E5bBjdBr; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a056a00140600b0056ce934bea2si15624178pfu.353.2022.11.08.09.23.48; Tue, 08 Nov 2022 09:24:02 -0800 (PST) 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=E5bBjdBr; 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 S234053AbiKHRV3 (ORCPT <rfc822;tony84727@gmail.com> + 99 others); Tue, 8 Nov 2022 12:21:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234054AbiKHRV0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Nov 2022 12:21:26 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70072.outbound.protection.outlook.com [40.107.7.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B03FF13D23; Tue, 8 Nov 2022 09:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=At2YIKswCnHv29QfbAGF3CGKAQBL9LdFky4Ln/VkSAHccJzhB68AsaEAVRQxkKjCJm2nB7ZfHWwspOcMXair1BzjALTCHky5o8O7e1HjQKvRGHdV3x2skt8zpO8WucZANDLsEhZb84CVNo4ZnAULzklcYysZe4cEV29plKqhDHWMSUh/1SsxP0Bu1WiOooU64HsgyTCplCHT1qNOgLcmH3p1MgN95rDti6cO15L9U/97cVBkt2r9/WCMgDsOJwk9oB4p0p0URsnGCNKP2hUrTm/uAUwlmAGpZeCquFVm0q6J5VZWGkqt9lwAzqs3kGAcijpY2x180NZp9ZAVN8TBzg== 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=iBopWqSQzCAPj6JgejAUQ9BnwQft7V19ynTbW2caEfc=; b=esjbkSqwuN3ZlCvMpMT8/X0k0VUj3c08y7I2FTjLBRG1VXFpz1szPkYX+q++yraf4CmF0CtbF8XQScpqVQiw9D+pwkQK8KFpqz4/Q91vXk4Jqp9ekrRpfvuZqPiHCdznR8c0+C+5F0HBpEHGRv437fL6SWW9U++YUurFtmH7l15KgpCZUPPbBW+V1gYBIybY8V6dOrH7RjSXciCxNQmYYl9qWmRLmxU8KcNFWEJyH9gnWYFDyVpVz9GmFbqpe+tZPGVv7zPeGYhpchlplHMPTBUSbwzdlza/YOmUJzyNLU3tVYQB1Cc1Vsous9h3oD35phUQNd/dpLJWuJjRdfOCDA== 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=iBopWqSQzCAPj6JgejAUQ9BnwQft7V19ynTbW2caEfc=; b=E5bBjdBrY10uxeWU30RZagRfkCRRwy6mVx8JNwC10CX3avEnk0+IF0gShojOgBvgkxSGPoKYeHFYo4+IoXgHlLKImG7G5u+R6djx+HHv7A6XN1RrOwrQ4cnB2n65ZvyvVv246oU/3eLVoZnhwcffXMZTo6DBrTp5F74nFJ1+AD8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by DBAPR04MB7334.eurprd04.prod.outlook.com (2603:10a6:10:1aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Tue, 8 Nov 2022 17:21:20 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::b1ab:dd4f:9237:d9f8]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::b1ab:dd4f:9237:d9f8%3]) with mapi id 15.20.5791.027; Tue, 8 Nov 2022 17:21:20 +0000 From: Shenwei Wang <shenwei.wang@nxp.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Shenwei Wang <shenwei.wang@nxp.com> Subject: [PATCH v2 0/2] net: fec: optimization and statistics Date: Tue, 8 Nov 2022 11:21:03 -0600 Message-Id: <20221108172105.3760656-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR05CA0015.namprd05.prod.outlook.com (2603:10b6:a03:254::20) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|DBAPR04MB7334:EE_ X-MS-Office365-Filtering-Correlation-Id: 2cf6bf4f-2de1-43e7-2e54-08dac1ada732 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H9Kk7gAPi9sPFLme6t6yuN6bzQ/iaRH7h/LpuELBmj3dI5CxEfRMnDjYofXE2Ev4mVRH6VxeP1peO9GtGEH9J+VeqIKeC85aeDGnA5Mt9cuLhM6Cd6AUvSmYgSvp6nuUozTwBnrcIRT2wHLDz/sSwmQlITn+Cx5q29cV8TrqoLJVMbJaiRFId7O02ZqoJF6QsEZH/tZTkc9gAshdgfQbQ5Xqint4AQo9CkKIHYrtNZflQrU/w57qkpl/lXuZbG3cqULSiYCQwekNKn6OsDkchblaWtix6y0BBw24E4hB1NzQJJpI9z6Mf835AHndNe16S0S7GzKxsqcK6i6tiJpUdVJQPBu4UXcGk7EcHsQo+mzHI5KF5RWkQYo105gzWjEdyDIq4T2aCqi30EyZKspYwYKYYk6gdDFLbZ7ifw8Jzkyt+vV5j5UjnTiYGEm2d8Fv1lJNzcQzL8VKhNBfFJX9UsdKrxGdqAAvl6v8NnA0mXbWa+l0uDvYeMUcVBSgh5Al/ipHfJ28ja9eR3TLgxXkhPV9mG4LJ1RD5lDPxwvC+KGrf8/NWBBaAX2/sF+u0/yVBhbaCN4J5PcXTNL1aS2QeSLT9O6/To4AcmdRZmpQ45Xo6aTJDvE3ujymjEWkGHAGmiGz0q+/Jhqa049kf1J9Pth8/R+Nc//+jLfh9lljRatPNA6knQWCRdkkq+3DEekvCGxA/W+dsf1RhNEf88WZgpV6Hp9yuRP0upNw15Ydm/BlI+K/pWNWpYP3yqDCtxa6ZcGP9YbtU8xuSUP38Xlpax4H5TUhgaseM1Ql2lEtJNc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(396003)(366004)(136003)(451199015)(36756003)(478600001)(38350700002)(38100700002)(83380400001)(86362001)(2906002)(6512007)(26005)(44832011)(4744005)(1076003)(6506007)(52116002)(55236004)(6666004)(6486002)(966005)(7416002)(5660300002)(8936002)(54906003)(110136005)(186003)(2616005)(316002)(66946007)(4326008)(66556008)(66476007)(8676002)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Qr67TJCaexGO8neVOy67kGw/Abw83MQTAybGvBxaUZHcW5xmmPFo9zoGz+H/35PAjjm2H4NgDfnAK/YXNrss98k19AeTnaGTKDKM8SHfG8JYyybee9zfyIls70S7LkIBobUzQjZ1pkeWXrgLpfF9R1ul+e5ViDLMeYI0ZYcjom23xgN56vLjPPx0Frlr030W9gVuSTLw8o/y8HvdxoNmQfbQtHLIPWLfRM2qbCI2MbHp5NCodPmg/wDubZqAcmdv/qXJv8blRILLOYGotMPeBm4AgmW7NfVn/Gd4exidwMvKz3zsclI325CgbKz+v3j0hGOyEeiZitZDanYmTzsvujpsJ5gNiS+h1R3CAHu1nq1rijUt4BEpI4lw7weOESdwHDU8Ql1FHsYzeNTwX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NPCPwyuYJm3x/YgcriG96aW+Gf62V9x5anSEpz124WLr3g4uEL5xiUp1oSB8VHw/ib6CFU6bRZW04nrmJvs5/7mIxtnbbdBq75sjpahqV6UkZsnlCMbkb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cf6bf4f-2de1-43e7-2e54-08dac1ada732 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 17:21:20.6807 (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: ACMJtSF8s+tRGBarZTffKg2Q6TlpqOuxcC3hLn75SLK0Wk8FP7GSQ2fMk8I4M+xQAbej/OPOdw7GEchkwKbJEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7334 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_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748949524886007203?= X-GMAIL-MSGID: =?utf-8?q?1748949524886007203?= |
Series |
net: fec: optimization and statistics
|
|
Message
Shenwei Wang
Nov. 8, 2022, 5:21 p.m. UTC
As the patch to add XDP statistics is based on the previous optimization patch, I've put the two patches together. The link to the optimization is the following: https://lore.kernel.org/imx/20221104024754.2756412-1-shenwei.wang@nxp.com/ Changes in v2: - clean up and restructure the codes per Andrew Lunn's review comments - clear the statistics when the adaptor is down Shenwei Wang (2): net: fec: simplify the code logic of quirks net: fec: add xdp and page pool statistics drivers/net/ethernet/freescale/fec.h | 14 +++ drivers/net/ethernet/freescale/fec_main.c | 134 ++++++++++++++++++---- 2 files changed, 124 insertions(+), 24 deletions(-) -- 2.34.1
Comments
On Tue, 8 Nov 2022 11:21:03 -0600 Shenwei Wang wrote: > As the patch to add XDP statistics is based on the previous optimization > patch, I've put the two patches together. The link to the optimization > is the following: > > https://lore.kernel.org/imx/20221104024754.2756412-1-shenwei.wang@nxp.com/ This set doesn't apply to net-next, is it on top of some not-yet-applied patches ?
> -----Original Message----- > From: Jakub Kicinski <kuba@kernel.org> > Sent: Tuesday, November 8, 2022 7:57 PM > To: Shenwei Wang <shenwei.wang@nxp.com> > Cc: David S. Miller <davem@davemloft.net>; Eric Dumazet > <edumazet@google.com>; Paolo Abeni <pabeni@redhat.com>; Alexei > Starovoitov <ast@kernel.org>; Daniel Borkmann <daniel@iogearbox.net>; > Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend > <john.fastabend@gmail.com>; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; imx@lists.linux.dev > Subject: [EXT] Re: [PATCH v2 0/2] net: fec: optimization and statistics > > Caution: EXT Email > > On Tue, 8 Nov 2022 11:21:03 -0600 Shenwei Wang wrote: > > As the patch to add XDP statistics is based on the previous > > optimization patch, I've put the two patches together. The link to the > > optimization is the following: > > > > This set doesn't apply to net-next, is it on top of some not-yet-applied patches ? I saw the first patch " net: fec: simplify the code logic of quirks" had already been applied a day ago. May only need to apply the second one: " net: fec: add xdp and page pool statistics". Sorry for the confusion. Thanks, Shenwei
On Wed, 9 Nov 2022 02:15:28 +0000 Shenwei Wang wrote: > > This set doesn't apply to net-next, is it on top of some not-yet-applied patches ? > > I saw the first patch " net: fec: simplify the code logic of quirks" had already been > applied a day ago. May only need to apply the second one: " net: fec: add xdp and page pool statistics". Oh, I see. You can wait for reviews a bit longer, but you'll have to repost just the parts that can be applied separately. It's fairly tricky to skip the first patch when applying, and the build bot will definitely not be able to cope.