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 C056DA00C4; Mon, 14 Feb 2022 10:35:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C20741169; Mon, 14 Feb 2022 10:35:38 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08on2042.outbound.protection.outlook.com [40.107.102.42]) by mails.dpdk.org (Postfix) with ESMTP id D77DC41157 for ; Mon, 14 Feb 2022 10:35:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eXde6/hjJ1H/QIfpFwTnHh8NKt/VAtyaEhscSDfdlxWEky9QxLXiyXYAL3H5qdLzIi4CT/7OAT+isXRFr8VTXjFNt0oY+Kwm5gZbOPsp/iEyJPOXno5P9oMn+6nBlqVy/IcoR8hhGLTNzEQ4nZhEhoBID/THOJFW2FZSiu18nESXGNet2bOEFHJUGDGDSxo823JYu3UlwpXOBx6N3AHxu0VHaB8jKvUXmyXra1Zyd+spuMMUeddMuPdUXa5NEz9A23qprxXUCjPHQsSWiDdC27F81xTi+ibW3/HtTn+7ZCenwPkMBRTEXX/Uy2juWNtXXVjYvSXE2Ok0fTZdC2smlw== 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=tdqNLlq1FNV4G16/pD4sjtiwZvFIZ+iZ6euAfhWgcdw=; b=XLmFPH7F4BHJjAq+rZIOyzVGCQAXWs2j6Ewk6kTxeQ3BIQ/UEqo00bPAr4MgjenEenuFSv8PvBPTif2IQsIihYsV+yzq2tjCufJ4CGnx5C22XU48jVxVPIvsmKx4W0HbgwT/KnVF67oTjDYXWIkF6hljoUvwBKSyHwB7CY7b1BcbqNwdCaXSxfh2XMJY/45O8Nt/FO31c/IM/c9LwfHMyu39MjCLwgnJLx9BGAwwFVzlbwa/uiJTildVHiz4ltu/6iq/RKrR3vvbBjWcvFzae3YCYqr4cXePZpHUfEkE8qLNGhcm4xtCdLI1RjzGEVgoIHbUB01ONRvaIMsrZ2ecEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tdqNLlq1FNV4G16/pD4sjtiwZvFIZ+iZ6euAfhWgcdw=; b=NaJ0fbCxz5+6dMoQfEPMa7uYnLNDMwF2ALBb0cEeZLSybwCy7IKT0qctCe52lzoE3lBK3cdckpws9LTlJdnJwrhlmQzSxxc6e5fbyV441ItirmHt6Tm5DMTEi0Ru9+tZFLWQ63W/amcJpBysW5oTciC/rOfWttyGu8G5r3L8x2gU9ydf7/8JcNoeJjGPwYeyfz1hFKbIBarVEQwD950GVw6jRVw4rwEoB0hL1JLYkaq/CG0Xz1D82nnFd/+vMmVKm1gyOAU2gCg133dDayphbbfCDhSdaLILDiwXNeBBChojgs7Ywjnp5izGEwnB/E8PAv0W2JELPvHG6D9KqYyHCQ== Received: from CO2PR05CA0072.namprd05.prod.outlook.com (2603:10b6:102:2::40) by BL1PR12MB5377.namprd12.prod.outlook.com (2603:10b6:208:31f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.18; Mon, 14 Feb 2022 09:35:35 +0000 Received: from CO1NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:102:2:cafe::91) by CO2PR05CA0072.outlook.office365.com (2603:10b6:102:2::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.8 via Frontend Transport; Mon, 14 Feb 2022 09:35:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.234) by CO1NAM11FT019.mail.protection.outlook.com (10.13.175.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4975.11 via Frontend Transport; Mon, 14 Feb 2022 09:35:34 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 14 Feb 2022 09:35:34 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9; Mon, 14 Feb 2022 01:35:33 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9 via Frontend Transport; Mon, 14 Feb 2022 01:35:31 -0800 From: Michael Baum To: CC: Matan Azrad , Raslan Darawsheh , Viacheslav Ovsiienko Subject: [PATCH v2 05/20] net/mlx5: remove declaration duplications Date: Mon, 14 Feb 2022 11:34:56 +0200 Message-ID: <20220214093511.1592698-6-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220214093511.1592698-1-michaelba@nvidia.com> References: <20220127153950.812953-1-michaelba@nvidia.com> <20220214093511.1592698-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f641fde0-90c3-4448-703a-08d9ef9d59ea X-MS-TrafficTypeDiagnostic: BL1PR12MB5377:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:400; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uaJdi/a7jcIxS5BL4/hU9vagy9Is+gCzN1vn609Vk2KxEBsnbO3QnAbpz5JewnJhrQTfYjC/RK6KiEssuZBWM0cu45Hjl1tJXIc+4c0XAfyn/AuPT8iGMLD6Xqi2e9SnbHd33dTZ9jmVwVCt5g8wJg+3tCx0N8NW9hnJjNo/aKdsf3QNx1U/V1oTQaGTGZboZA6BsemW4wiTLF8F+b5pm45DEAI0w6Di+2+erYPFgnHOrEypnGdx/SjJDFNIFM997jOeC8xg1WsGySRR5jG0YlwuGhXExm2MpbNx5k9PrLWQXlgAkEXFBfLTQFtOg9mZtYtZAnIJ4/r9fLrc9zByxnYWsELq1do1dm1uUtcB4g97DG2uWXdS12fBmNmn5LaXUhXvvKWYTfJhZWPJRdluS+bdNpOQGhu0fT5+QSbToQWNnqaoas/jAe7KpNmCNqvIKwVQuA0zRsC8JfnEh6606dPNA+M6gY3pR9Sp1F37bmB09X49OJiK7QxxMo4umrSMF2FFglVmRZXuGwOfcEoCw+/Ozwim9LaXbKU2aCOYru/zxAa8mgCc+8osbwj7/CEmJoM8Ntr2XLAO4q+PX+QnIbBhM2OlxoXDextD8IcakVTzyBaU07yc2BQXMZ+6mHlK34DWNG0PAL0/BBXUjlAME3Dou2XG0w7oFx/v+IBv9aby7ilf1oX0M0qLYpAs+IlAVl5AUvXp5ugKUsTD2xJl0w== X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(36860700001)(47076005)(82310400004)(81166007)(6916009)(86362001)(40460700003)(8676002)(356005)(54906003)(316002)(4326008)(70586007)(8936002)(70206006)(2906002)(5660300002)(2616005)(107886003)(55016003)(36756003)(1076003)(426003)(83380400001)(336012)(6286002)(26005)(6666004)(508600001)(186003)(7696005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2022 09:35:34.5982 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f641fde0-90c3-4448-703a-08d9ef9d59ea X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5377 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 In mlx5_ethdev.c file are implemented those 4 functions: - mlx5_dev_infos_get - mlx5_fw_version_get - mlx5_dev_set_mtu - mlx5_hairpin_cap_get In mlx5.h file they are declared twice. First time under mlx5.c file and second time under mlx5_ethdev.c file. This patch removes the redundant declaration. Signed-off-by: Michael Baum Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index 737ad6895c..823a943978 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -1532,11 +1532,6 @@ void mlx5_set_metadata_mask(struct rte_eth_dev *dev); int mlx5_dev_check_sibling_config(struct mlx5_priv *priv, struct mlx5_dev_config *config, struct rte_device *dpdk_dev); -int mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info); -int mlx5_fw_version_get(struct rte_eth_dev *dev, char *fw_ver, size_t fw_size); -int mlx5_dev_set_mtu(struct rte_eth_dev *dev, uint16_t mtu); -int mlx5_hairpin_cap_get(struct rte_eth_dev *dev, - struct rte_eth_hairpin_cap *cap); bool mlx5_flex_parser_ecpri_exist(struct rte_eth_dev *dev); int mlx5_flex_parser_ecpri_alloc(struct rte_eth_dev *dev); int mlx5_flow_aso_age_mng_init(struct mlx5_dev_ctx_shared *sh); @@ -1556,10 +1551,8 @@ int mlx5_representor_info_get(struct rte_eth_dev *dev, (((repr_id) >> 12) & 3) uint16_t mlx5_representor_id_encode(const struct mlx5_switch_info *info, enum rte_eth_representor_type hpf_type); -int mlx5_fw_version_get(struct rte_eth_dev *dev, char *fw_ver, - size_t fw_size); -int mlx5_dev_infos_get(struct rte_eth_dev *dev, - struct rte_eth_dev_info *info); +int mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info); +int mlx5_fw_version_get(struct rte_eth_dev *dev, char *fw_ver, size_t fw_size); const uint32_t *mlx5_dev_supported_ptypes_get(struct rte_eth_dev *dev); int mlx5_dev_set_mtu(struct rte_eth_dev *dev, uint16_t mtu); int mlx5_hairpin_cap_get(struct rte_eth_dev *dev, -- 2.25.1