From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3FE72454B8 for ; Mon, 24 Jun 2024 03:58:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90EFA40A70; Mon, 24 Jun 2024 03:58:00 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2110.outbound.protection.outlook.com [40.107.101.110]) by mails.dpdk.org (Postfix) with ESMTP id 9903F4066E; Mon, 24 Jun 2024 03:57:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NQuX8cJXl/v7QSv23LDHD+cS6EStSrwUn0rxkoFHBRmS3e/i2sWf/iMLqJQLAITd77SZkfFM9fbPrkrDKOelQp9+XwDefPoAzan8KCxqBCOZonQjooaf/cWDmvVQ6ggu9L5ynlV3oVHjx4BVHbVA1BPyqSWV1I7CtUW5YAsNra/Q2RoeT6hLT3ijG1kM3pYKgAznNoxrAU9AJeDxEYI+9bRpEkkhg+Zn0fhO7ZONHsvWIu5pnBm8m2EPBa6ELoui22d3sqlLWbBIL3lmDlHhC9mzRUSdUgT2vKFNCo+33zArmtzhfn2qxVvbkgcKDZoDHwivGo7PYswca908MEmmsA== 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=uIqqCSogg+3iQMXe082H0mJhQoyjef5EQM3xY0k/9IE=; b=N/liGmFPN9f6qw/caH2ybhIVC97S02crkrQKqkIH6se0hq2Akl+7BGHPuqbtV09URTDt7PuIKaHDWOfwfXCf2uIW/e5MayyIUyoUG0qQeNQ8Alqo8WySY4pu5/Zr6MOEqpDor2Vjx9KkHvm6cUBx+64JomQrOJh1fKar4vXPBeY3dKo3FS10/1zZmd9JlXIkDO62LR2xWjn8dVIEHjTd4ZVi6OjpgM04GetZKcm0Vftxfau5JWuqCp9xHApZJjgiltI4v32nOyCjt0TqKo38m2dGioeFLt043Vs3AYNx/Ff8tcTECywMNi1JZMXc6Rl2+0cRdgR6niJt0u8yfcroIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uIqqCSogg+3iQMXe082H0mJhQoyjef5EQM3xY0k/9IE=; b=j6+HbLPYGhhcBFaO1SV4bvImbX4RmbnwI8kbDtBKG4CHb7Vf+hJYl2a46EGMM8e23v0rRCY9eDj+M4Rc4qTou3mNWKDsCPPCc7aaXIg+IgoDHu3+R9SP2ZCAxS5IhQL9Z1hpTI15izELHoiqoUzZv7JPMuHAcKH9q5FvtffM5DA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by SA1PR13MB5443.namprd13.prod.outlook.com (2603:10b6:806:232::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.37; Mon, 24 Jun 2024 01:57:56 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7698.024; Mon, 24 Jun 2024 01:57:56 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , stable@dpdk.org, Long Wu , Peng Zhang Subject: [PATCH 06/17] net/nfp: remove redundancy function call Date: Mon, 24 Jun 2024 09:57:12 +0800 Message-Id: <20240624015723.3712898-7-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240624015723.3712898-1-chaoyong.he@corigine.com> References: <20240624015723.3712898-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB5443:EE_ X-MS-Office365-Filtering-Correlation-Id: 979fb005-ebc4-463b-77f0-08dc93f110e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rVzrBK+D50EI8Teogrt4xrd0lwCuhev4NQAVHLj3EtWpztZ1cBkqht6QJRDA?= =?us-ascii?Q?Cj0ZhbuFbi3Sn84L9G5WMJkEWA/M6Cz7P3K03zCkguWNERBmYpu7JmZQVaUA?= =?us-ascii?Q?S23xXk5juzzz98FGDd75JjD5Gv0XDb//xo55Maxk1Zev9/ftB0e6AAVzi43c?= =?us-ascii?Q?pItfyt8cVKy9uj6FN4tJfSJWgg+5Af8gb966S8hmIeCth0V8Iul7MBrZodhh?= =?us-ascii?Q?va/pHX8P1pIxmm+sLVe0lir2/7dFydyrc6j9hmpE0OG67bO1ec/HRO9AMZt/?= =?us-ascii?Q?G38ufL0+rldezlxK42ea7KECoLdTvfzWYjWQ2T9gRexhIrVup3L/JsGNS+St?= =?us-ascii?Q?x1tOw9uRvni1aD+zboF7llTLtgcD3vbpH70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s2ZsGVJKsT2Q2PX/HXRhwquzac7nMe3N0VgDoLFwGF2w33KpNM9WmPJjKQ?= =?us-ascii?Q?SFDV4ETmI7ItD8CPF/bwrMcNw5waRNQO6PjyfDXX5R1AcQus9ny2GrOKeigJ?= =?us-ascii?Q?v1j23mxJ6FZZp+h4ZTs/XqshDjdaES+3KhqwhdG7STe9VMb3MQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mw/MlLuhDu996dPP24n9nv8r6M0EXwAKsaOXBaQflvydozGl+j52im92ZW1d?= =?us-ascii?Q?uQMaxq5UsDlf8af+LEYaRSKrBQ69feCy88sYjkqWkCMfqXqAajQ86Iaoa2pp?= =?us-ascii?Q?19nY6YuKwib8j8SWTgQfyeneU/Pe2Pif2kDtmtqErkpnm7Q+hRUJ00dVBY5P?= =?us-ascii?Q?mm0FngKESKeQn+4fu7MNUMEtyYHyxAipK4X+GD8KPvjiMyyanlnRRX14KWfW?= =?us-ascii?Q?IEvhju509/MxUAhurQEBXhQmnbZsQ0KjvjmAW7Ma6sDNATIZFsNEzZwIlr7u?= =?us-ascii?Q?XvYAa+4XT6NQGm/c+jjtWRRIpMMuhx/zt0aycYPIdFhdOEFwrmNqk5vU1yj+?= =?us-ascii?Q?iGbwkyqq/raqt1VzMCLTyZ/BS0ecdFDbzvzmXHCZQl9hxrCc1saOnaiG1sOB?= =?us-ascii?Q?AV/0aA7MCFa845CJU5KJGGm2G4ulfWkqRYVT677Tp0g6xTfXPzFlUiz+7W6w?= =?us-ascii?Q?43buj5fuZbaFG7faV2yoYqRzS9aINjoqu0LgYLCt7tzK53a/z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ik5oFa+OzFIDHkQ2MKmqRcWAlzZKqRxzXZwhW+?= =?us-ascii?Q?bPhsryF891+3K9qiQinB42L8Ndood6F1a1Qtyvz4UA+N1LVN7XwQTcPXRREO?= =?us-ascii?Q?4gfOZgoOsa1LKNwH8WRMTcbKAnaJdCCTYN0ZwuOwk8FqHeCWFGMA+2nAIIii?= =?us-ascii?Q?gJ6sEMe4oE4QaQtsXduZj4zxPdH3wWef78xGEXMipjbcTn96fvH3z25EISQw?= =?us-ascii?Q?nA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 979fb005-ebc4-463b-77f0-08dc93f110e6 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 01:57:56.2311 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 80Kw+SfeQiQRWhdeuLz1XQXgPMHrwURH8rtHu1xYiDzL97H5BYrOpd/NHVKY3d/3Amaps2UBd/cxiKmceDhzo9sbsYw15Bs3e/z2WL76AXs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB5443 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Remove the redundancy call of 'rte_eth_copy_pci_info()' as the API 'rte_eth_dev_pci_allocate()' already done that. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Cc: stable@dpdk.org Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_ethdev_vf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c index a5c600c87b..cdf5da3af7 100644 --- a/drivers/net/nfp/nfp_ethdev_vf.c +++ b/drivers/net/nfp/nfp_ethdev_vf.c @@ -303,8 +303,6 @@ nfp_netvf_init(struct rte_eth_dev *eth_dev) if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; - rte_eth_copy_pci_info(eth_dev, pci_dev); - net_hw->eth_xstats_base = rte_malloc("rte_eth_xstat", sizeof(struct rte_eth_xstat) * nfp_net_xstats_size(eth_dev), 0); if (net_hw->eth_xstats_base == NULL) { -- 2.39.1