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 3100CA0548; Thu, 2 Jun 2022 03:54:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DDA74069F; Thu, 2 Jun 2022 03:54:25 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2137.outbound.protection.outlook.com [40.107.100.137]) by mails.dpdk.org (Postfix) with ESMTP id AE8FC427EA for ; Thu, 2 Jun 2022 03:54:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UwmCpgdTUZPaE9tgXAI2JKEcW1nNk7azbYo1A0BzWTGju086TCuSdWbYCIMu8PDfcdtAWv9UzeHZy65RriPyo+7Xm6JtcPmGV35G4YiIz+i2j1MKnn0Z6NfzwTkK7QMyGAryZrCA0mUEyxb7v6Haxvgrw+DVfrDZje1pcgLU32aOZe95zMRj6Ap0XPqrEK7meyfadMc/g5kl2Rc6qO09nUW50BP1IuYnbfRDZ8HkhscdhKhMcI8nqDEqKcdPCT5NdUGI91uxgKWzoQbEXDPBCdFHIaliK0bNPdu4nElpNvVbIz0xmdbx39p1DvF2rHxTQewHZXI7/BHAnEaS46Jhmw== 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=lxYcfnVKM+An3mCvq8ymHnfO7sJD5oe+dvmXry8rKa4=; b=e5mRpDLvDq+a4S/hsVTn4CLXTLZd0hVU2b9g2+Zo53hC0FnlvL4cJ70CaujoQoZsa+vUXIUxuyIw43Cpfnb2YkLvRDeSftwJcnPt/VMondbg3ixk9urP+IaRWNBLgjdzozZukx6zjP74sbsQ/DHLW4VO2DhCfnLOSw/I4xgPdVUiMCMcpa4hP7Nf/1rNqjxKtu7hG9x29gXxQ4UDOs65+lslbzwhMqAf6fsccPJjqEBPf7Y747TaaGn3bOOD0S72IHMSR01jyuhkoMxEVZBZG+22G1Rm885o0/GhXoOcSzQ7OUjVxVMrZRw7SWeTU4zu9GYGSwysxKWN3uAr/dzEgw== 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=lxYcfnVKM+An3mCvq8ymHnfO7sJD5oe+dvmXry8rKa4=; b=Dcz++zp4+rJKcWov38mTC4E8+4gjHC9TkIjYiutHuiZJrSpaz9ILsvxG8H8i91Uzy3WLDsug2On2AbAuT8eQQDGDsghqk8TFlYSw6KG2NAv5dDPuz9rs3aKcxlkpq3okmtCGum7llbrACZv0NLxYLbNHuqWpYQRZw3gt6x37Y48= 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 CY4PR13MB1349.namprd13.prod.outlook.com (2603:10b6:903:a0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 2 Jun 2022 01:54:22 +0000 Received: from DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::d902:ed7d:82bb:c753]) by DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::d902:ed7d:82bb:c753%4]) with mapi id 15.20.5314.013; Thu, 2 Jun 2022 01:54:22 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Chaoyong He , Jin Liu Subject: [PATCH 02/14] net/nfp: remove unnecessary forward function declaration Date: Thu, 2 Jun 2022 03:52:52 +0200 Message-Id: <20220602015304.710197-3-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220602015304.710197-1-jin.liu@corigine.com> References: <20220602015304.710197-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0457.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1aa::12) 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: 7927bfa9-bce7-4981-d165-08da443ad02a X-MS-TrafficTypeDiagnostic: CY4PR13MB1349: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: ICBV1EE6ghllJgK8uKLKLs0qsf+El6TnyzHzASBmXSOke6ErgfG/1JWK03UJ36t10Zz8WSdxHwK9jmPgqC7Hc1AE2Br0IuQYOjVWHBuMoG4cYIV2WcS1jVH+CVy+B26XyznIP+9Hf58D7QGSTQt7QVwlfoMMCJyssW0MNaSGVmsx3WyowSgp4S7J/emcBOjnaMvZFWECPENdJsLkbswspG1KGGAyPqgHZsiaw0zi48QQMTeTkSxFshF1YK6zdkVN7VAuQndfdPWVcb+p6yDGxdwUkQhWBxBWs7/Aba98392HVIA/xgmWD7ovRGX/EZEWeaP6u1e67FuRaG6xfhzeyhQsEMTyLR4SgAMAlOlLDwnAsjhm9o7MCBFNsHy9c+6xGa3/VxWTFYE0Ze1KR8IWyHk/4l9HnDCHtTpUU/fAuzRFzBLVdfbPBKm7POCnQfiRsOJEHaFBmYVPCY1Iii8yvjnxtlLtT/s+XiU4FVzsz/oS/okCa/W6LqXqupE6SH2YcrcoM60d0De1BPOL5taJbfUCP5r+to3NJ86a0DsIEbt9butdxLBCJ1GgqyZx00FYZQUcdwyWrGKzzuUDjrI2zRQIhA0q80/rM/v0y9y/nFMb4F5K4FsJ6vjJ+KKVEq5AN4acF391VxDHcEzv2luabeVYXLYWtlnXpftFONCBV/JE//bFwAg38iVCJYVH2Bbqze/u2PWASnWTgn+IwRMJLw== 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:(13230001)(4636009)(366004)(39840400004)(136003)(376002)(346002)(396003)(6512007)(83380400001)(8936002)(38350700002)(8676002)(66476007)(316002)(4326008)(38100700002)(26005)(66946007)(66556008)(2906002)(6506007)(6486002)(5660300002)(508600001)(6666004)(52116002)(107886003)(1076003)(36756003)(186003)(86362001)(41300700001)(66574015)(44832011)(2616005)(54906003)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZVBjUU1yU0s1WjJIU1E3MllTSjVYdU1HL1gwR2ZIRzU2eDNDb1BIQ3JKdzJx?= =?utf-8?B?RjFmcE5DZEtySXAzTFZIa1I2OXBnWG1McHU3MmcyeVV3bjkzMjFOOWRxVlgy?= =?utf-8?B?ZU5Hd1c1M0djSHpxSG1YaWZrT0trd1NOdXNzSUNhSzVzWHROSnRzNlpVdVY5?= =?utf-8?B?L2FSR2U4b3BNL2tRVlArVnluSjIzTCthbXZDZGhvcWhudUtINU1NYURVWk9S?= =?utf-8?B?UURWTDVlcldFMDJZUUxUU0tQY0tBcHhPa1lWZ093ZGQ3TDBreGdhT2c5K25C?= =?utf-8?B?d20wM25HQk1aem45VklXb0FPVkwxWVNIa0pYbDR4VnFKZnM4Wm5vNkpyZ25X?= =?utf-8?B?eW9zMXhidHpMU0wrMUhOK1JSW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R0WDcrWUQyTnZwOEk3QmJ4UldyQWdNeU5HbzN2b0NvODJuNVJy?= =?utf-8?B?MW1pODVudC9xc2phL1hLL2x6Vk5KR0ZEVUp1SDlINTR2VFE3WDkrUk5rR2VN?= =?utf-8?B?VVQ4VGVEalR6WGVlYk14SDk2R3hEODkwRmxoV000VFljZ0U0Qm94QT09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7927bfa9-bce7-4981-d165-08da443ad02a X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 01:54:22.0261 (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: SQ5EbA4yd8/rQiUDnfHieU9B2aj/LhnMg7DOXT7fzYPW/xKaDBF0aYe7/aqHbbnreNjDJSTAFJ8KQFE6Qr/VKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR13MB1349 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 From: Chaoyong He 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 ea92ca3f68..790d575bb8 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 4aaccc91df..69d9e0ee47 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