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 39B87A0093; Fri, 17 Jun 2022 11:35:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BBCBD4281C; Fri, 17 Jun 2022 11:35:16 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2101.outbound.protection.outlook.com [40.107.94.101]) by mails.dpdk.org (Postfix) with ESMTP id 7DBCE410FC for ; Fri, 17 Jun 2022 11:35:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kul34eR53TgDGIlqkeP0TpQM4PmgfWQ1coDEYH84I4yS8wWoeOJpkt5h8roLWYlNhpc2fhQSS9f6++IGGfwR6HyCbgmg8/j6B9/0rOGjJIhaIvjZG9G7GHp8LKzRbzBpMWjf/eWo49FBDNmNwnBlMm4LjB0km043rufBKm2Pv8LPJZB7til/9i7642zucKmxMQimxXS9r62gHSUAqKxzkaFvOADnE7rmz+Z1XO6PeW58oFyrJOID4GJuNXM0dT4xaS/zftWzkDHTr985R9a74OEIg98+BWg+89TI6OvUaLMZsfxZoJEu6TRla7UX1gH5rPxMSoELBevo++o3elX7GA== 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=h0XMQ/gppdgEIimBF1bLvhm5GOnKmL0wp/g835CrBL0=; b=O4XpZ5j5BQtiLLWYHoj7JGitFw5OAdoccYViNXfjtJZBSyVbNIXeaWHgpgLcgdNKmkMmebgouiTkgm4ta991Z1ic+/T4dqj+mpoUJ0K414P8XKCxuroBEYis8e9VDjd56SkFEmU/Bmq9gKyWZ0b+iN5ArrrKUgRxi6AQ5i+EgpuTPnTmZnWu7sEWQ6j1x/uZuhMkwuv+9iGtx74ndAD5uTd13hgAwWxjyFmcP1sEwqEUCW4gKwnTyc/pAU2cx/SMosNzgj/se+4NmU48ZO/r6cSP7Wh2htlPG0dp5jZJVdSCKJWtaLKpgQCLXoyPv6jvg3gPbKmSMTlhNYpDYnPFEA== 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=h0XMQ/gppdgEIimBF1bLvhm5GOnKmL0wp/g835CrBL0=; b=YjTFY5B4im714j4No7UBWUd+LrAhFOJomVHjANOu2inM9SyS9+MZJAgIRZVyncdS0KZvVjgDnB0m1oh/lzivQ4YFEkzHdY2+DL/H09GLVVMt0MGKZUjTvucD6nhwDKgAVG0qdkPkCIDxZuUCglVCJ0Aposufd6PnS6g6aIk4Q1I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) by CO3PR13MB5671.namprd13.prod.outlook.com (2603:10b6:303:17a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9; Fri, 17 Jun 2022 09:35:13 +0000 Received: from DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35]) by DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35%7]) with mapi id 15.20.5373.009; Fri, 17 Jun 2022 09:35:13 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Jin Liu , Chaoyong He Subject: [PATCH v3 02/13] net/nfp: remove unnecessary forward function declaration Date: Fri, 17 Jun 2022 11:34:33 +0200 Message-Id: <20220617093444.2004000-3-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220617093444.2004000-1-jin.liu@corigine.com> References: <20220616023939.1798769-1-jin.liu@corigine.com> <20220617093444.2004000-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0192.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a4::17) To DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c16aff95-62cf-4968-4cab-08da5044adb5 X-MS-TrafficTypeDiagnostic: CO3PR13MB5671:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WE1drA/tKleHKz5ULCJCscGfJ2lDxPJy25fbGwcUZX7Ot/niKG+kVhBIAMbXosSJS73qSLsFv6UCckU/kf1GDyZSqn+3SeoMKRB5bqbi7jKxdT/efyYslW1w7PCdO634bmszrM6L9xwuczW8Fw6/4+46s+l/H/bHe/0nmmXuqrHjIelieDrXdnYQO9Ir2SCdvrFNFbgWGtIPFQloEDgViu/xLWfOFL78esdJcfOvPfS7GSlETs++Wo0eSMj09s+OAcEjRrgf257GF+CSqgnOSfdhbY8xZm9lXU8mlFOaIODsYC3i5/hkjdJuhH0UikJOmhrmTex4lYYsSVbFIIhjNs0jXe1+AJ6qUB/jvEn3PZ/Syio82PFJDf2kRfDzRssHsyG4X5+01PNmGvDWKPjHqVFs35HkqJdop1nK8xHCAYNJtD0ROfC0ed5ksB0uEqojoBPM/h+6GHdK1ql1OSfKpIrByXoCW547rHYTsmkPmzNohl7ICNBRzn3Ygd0t5hV3aN6/KX8m6GLpx+D76G/+tjtQhGWsBM21w0G/O21YA79LI4yoXZpxDSdUUoO+cyIr0cGRAgXZC+4xvhdg/3NT2unPqrc8PUIY1S7JmEaGuaxn79fD7m2CTLd1H6JNPPBcPstPIfHj+qZj0FlDA6DHfm2pkZhOJVtWj7X/9zlYsoyT+Yh+mV55Jbj6O5zdHM0G38CmJpzC0xWleYB5nyrUDcwYSjEoFi/OB6HHrVYMz2fC3rxqiijfJ8hm53VhHg49 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR13MB3004.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(366004)(396003)(39840400004)(66476007)(66556008)(26005)(8676002)(66574015)(6666004)(107886003)(66946007)(6506007)(6916009)(44832011)(2906002)(316002)(4326008)(38350700002)(186003)(508600001)(54906003)(5660300002)(6486002)(6512007)(1076003)(8936002)(2616005)(36756003)(52116002)(83380400001)(86362001)(38100700002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M3ZqZXNwWHBCVGZUdEQzOTA3Zk5kc2lIN2hLRENXSzBPcGpleVN0R2JtTDhJ?= =?utf-8?B?YWVENzNLeFNnemx6Y3c0bGpZSnZpd1Jhb1dBb2xWQUpTMlQ1WHlwVXpEMkJo?= =?utf-8?B?WldrQTROUXNXQWNGdWtrQ3NPNnRxS1hITnV2YkdOWWJRTlpKSG9PZis2a29O?= =?utf-8?B?MUJsSzNINkZHdXNQSWg0d2p3WTBIVkszSFphS29vL0JyQVpFS3pQSmJGMnY3?= =?utf-8?B?R3h5NzdITzB4UDJIK3pxRndUdUN4bFJvTm1UbVRDSHRNT3JtbWQ2YlIveE5S?= =?utf-8?B?aTk0UnJoZi9qYk1xYTFUVTRhenduOFF5OTFo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Ep2SmVpbmFUbFhTcFRQM1QzMTZwak9ZUUNsQVhUSEZFUko5RVpwb2NDaStR?= =?utf-8?B?OGVUK1M4OFRvQVlsY2NRM1grdTRhNHlHT1loeUJSOWh4UnlpTWFOaEJpRDhs?= =?utf-8?B?WkdmL3dPbHpNSVhyWnNtalkyQUZGMTVsMDZwaTJSd1R0ZmFhTENTWDBKcjFY?= =?utf-8?B?T0xjSVZQN1d4VmJmWFVOWU1icGZvRHhjVVhPMk1Vd1d2WWQwVEVZQT09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: c16aff95-62cf-4968-4cab-08da5044adb5 X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 09:35:13.1181 (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: lfAR6DLrTfkpTwFWS/erh8tjCBse6HgPoKDA6xzrJq8mAcYYumAn7F8gX/kakBW2VxdfwRN1hhnkYjkoFUHixw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO3PR13MB5671 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This commit remove some unnecessary forward function declarations. Signed-off-by: Chaoyong He Signed-off-by: Jin Liu Signed-off-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 22 ---------------------- drivers/net/nfp/nfp_ethdev_vf.c | 12 ------------ drivers/net/nfp/nfp_rxtx.c | 21 --------------------- 3 files changed, 55 deletions(-) diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index eb0d92a98c..36ab31b688 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -38,28 +38,6 @@ #include "nfp_ctrl.h" #include "nfp_cpp_bridge.h" - -static int nfp_net_pf_read_mac(struct nfp_pf_dev *pf_dev, int port); -static int nfp_net_start(struct rte_eth_dev *dev); -static int nfp_net_stop(struct rte_eth_dev *dev); -static int nfp_net_set_link_up(struct rte_eth_dev *dev); -static int nfp_net_set_link_down(struct rte_eth_dev *dev); -static int nfp_net_close(struct rte_eth_dev *dev); -static int nfp_net_init(struct rte_eth_dev *eth_dev); -static int nfp_fw_upload(struct rte_pci_device *dev, - struct nfp_nsp *nsp, char *card); -static int nfp_fw_setup(struct rte_pci_device *dev, - struct nfp_cpp *cpp, - struct nfp_eth_table *nfp_eth_table, - struct nfp_hwinfo *hwinfo); -static int nfp_init_phyports(struct nfp_pf_dev *pf_dev); -static int nfp_pf_init(struct rte_pci_device *pci_dev); -static int nfp_pf_secondary_init(struct rte_pci_device *pci_dev); -static int nfp_pf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, - struct rte_pci_device *dev); -static int nfp_pci_uninit(struct rte_eth_dev *eth_dev); -static int eth_nfp_pci_remove(struct rte_pci_device *pci_dev); - static int nfp_net_pf_read_mac(struct nfp_pf_dev *pf_dev, int port) { diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c index 381a25c03c..8d68ccbc95 100644 --- a/drivers/net/nfp/nfp_ethdev_vf.c +++ b/drivers/net/nfp/nfp_ethdev_vf.c @@ -23,18 +23,6 @@ #include "nfp_logs.h" #include "nfp_ctrl.h" -static void nfp_netvf_read_mac(struct nfp_net_hw *hw); -static int nfp_netvf_start(struct rte_eth_dev *dev); -static int nfp_netvf_stop(struct rte_eth_dev *dev); -static int nfp_netvf_set_link_up(struct rte_eth_dev *dev); -static int nfp_netvf_set_link_down(struct rte_eth_dev *dev); -static int nfp_netvf_close(struct rte_eth_dev *dev); -static int nfp_netvf_init(struct rte_eth_dev *eth_dev); -static int nfp_vf_pci_uninit(struct rte_eth_dev *eth_dev); -static int eth_nfp_vf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, - struct rte_pci_device *pci_dev); -static int eth_nfp_vf_pci_remove(struct rte_pci_device *pci_dev); - static void nfp_netvf_read_mac(struct nfp_net_hw *hw) { diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c index 335a90b2c9..cd7faa2c58 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -21,27 +21,6 @@ #include "nfp_logs.h" #include "nfp_ctrl.h" -/* Prototypes */ -static int nfp_net_rx_fill_freelist(struct nfp_net_rxq *rxq); -static inline void nfp_net_mbuf_alloc_failed(struct nfp_net_rxq *rxq); -static inline void nfp_net_set_hash(struct nfp_net_rxq *rxq, - struct nfp_net_rx_desc *rxd, - struct rte_mbuf *mbuf); -static inline void nfp_net_rx_cksum(struct nfp_net_rxq *rxq, - struct nfp_net_rx_desc *rxd, - struct rte_mbuf *mb); -static void nfp_net_rx_queue_release_mbufs(struct nfp_net_rxq *rxq); -static int nfp_net_tx_free_bufs(struct nfp_net_txq *txq); -static void nfp_net_tx_queue_release_mbufs(struct nfp_net_txq *txq); -static inline uint32_t nfp_free_tx_desc(struct nfp_net_txq *txq); -static inline uint32_t nfp_net_txq_full(struct nfp_net_txq *txq); -static inline void nfp_net_tx_tso(struct nfp_net_txq *txq, - struct nfp_net_tx_desc *txd, - struct rte_mbuf *mb); -static inline void nfp_net_tx_cksum(struct nfp_net_txq *txq, - struct nfp_net_tx_desc *txd, - struct rte_mbuf *mb); - static int nfp_net_rx_fill_freelist(struct nfp_net_rxq *rxq) { -- 2.27.0