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 0DD6E43A1B; Wed, 7 Feb 2024 03:20:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71A8042DD4; Wed, 7 Feb 2024 03:19:56 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2075.outbound.protection.outlook.com [40.107.94.75]) by mails.dpdk.org (Postfix) with ESMTP id B87E642DCB for ; Wed, 7 Feb 2024 03:19:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ayZlUNqH/I41wN9U5wzKZdU5yvzm+NXdPA1fxYMExo4ZMdu3AMasueOxn2oMKSQhNEy7/lSEdthb/I3WEomyYozi75JqVJ7+QJvWyoHCjfk4p+Hdj0Pq9AmpMAcTGrDTlaSuOs2IW5/WnPM4xQ7REW4DeyzsLeWX7nFWmEbpozNTJDydebQFb2eJtAR5pV6E5o4/bfIB/+K31qXAjiwXuA5B9B0aicjs+NPS9ZEd7NL2hYHWJDSdDH/GwUUrr2UymRgixGs8ndSpbIQoHAeJsQZgQ7FpDCQJ+6uJn8ELCd4QWW9hFkmVXuCO9VX7Q0aB9FyjzHAT0XzlM1ABJMp9uA== 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=oq/PBA1725fYtbNBGr/0+JkF07kPxpo3P8UUd4XkQd0=; b=jn3avbXWfrgjLWYTyZJp/aWWQ3NfJ4rzfzdH1fVQTiD775/0stk2O2KPc5/MkMBSP9kaj99yxb/sf1tuXWzzwUZQBqZo/s3Sb6LETdfztyz0NKseB+MULkCJvT6voaXgjP5kqAyDm8YghANYTA1Wrcs2dVgNa9r7/vEh1QZwe52h3adgiA21nf/2zwvEZifYbvo5iuhMgwHVLhzk/8QWNpgDEqyQyeAm35wlqLCrUle/BtCC6tVH/hN7YeyGJQGPHgxZ9uLOG71pQ+0N8+Nt3yZ1FGKr+5HzEZipqPg68ePQ+GLmdLHLuGpGpw4YmbZrpBc9yIL1RQZ6JDWcikdvYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oq/PBA1725fYtbNBGr/0+JkF07kPxpo3P8UUd4XkQd0=; b=T8nQf9tolR9llVlJvzAdpWwgONy8WJmdc9ydc8bIcijBQngxzCR0M9KPYpMfXtkoNBleBeKxkjM1173O2jF6t3BYEVQGeoflaV7KNM5uDqX1Mge/+8ofDM5e57QMFJl/q1GqxswbQXM4GNtEfmg/VYVPBbnScKBDAyB+Txvfu6I= Received: from PR3PR09CA0024.eurprd09.prod.outlook.com (2603:10a6:102:b7::29) by PH8PR12MB7205.namprd12.prod.outlook.com (2603:10b6:510:227::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Wed, 7 Feb 2024 02:19:51 +0000 Received: from SA2PEPF000015CC.namprd03.prod.outlook.com (2603:10a6:102:b7:cafe::ff) by PR3PR09CA0024.outlook.office365.com (2603:10a6:102:b7::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36 via Frontend Transport; Wed, 7 Feb 2024 02:19:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SA2PEPF000015CC.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7249.19 via Frontend Transport; Wed, 7 Feb 2024 02:19:50 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 6 Feb 2024 20:19:45 -0600 From: Andrew Boyer To: CC: Vamsi Krishna Atluri , Andrew Boyer Subject: [PATCH v2 08/13] net/ionic: report 1G and 200G link speeds when applicable Date: Tue, 6 Feb 2024 18:18:44 -0800 Message-ID: <20240207021849.52988-9-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240202193238.62669-1-andrew.boyer@amd.com> References: <20240202193238.62669-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015CC:EE_|PH8PR12MB7205:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ffff5da-066e-4b3d-a2c2-08dc27834377 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pwl7prlcVV+6eNlTzPUE01TnRBURmrtsRT7CafB4TRhbcDG+9YZ27d76wXhGCXxHPRn8MWf0nCeJ7ls4HcrXBYRWw2hsxdvJEl8pXm8DpWc4WklkEMLjIwcH9nTPNQMJIvjv+T4dlhWtvFoaYlCGIcoMAC2yvzmtPt7qFs9tvg9kCAJDOSynxdz34ESkQO+glzc2O/BMTyFK7vj4bR+kC45KL8mlW/QYpkQBRMLHHLQ31xeZsWEsNDVX1rKZ8Btimqe2eGln98VmcKwMdEsBpP3c/vq5nShlzOqWy1ewWryb1dk24AL2LG0D24lMCuu7tARbU6RagEffOqWnBLTw21so4EePgQq241HA/E/w8oNSe+pfgl9Zo6KmYfToAiyWzFv5ea62j0VYAVc97fLMiWE8iByl3U+5rw1K9f9wysLXlGxeBYoi15veXfMoJXt7VHrLwSwxOFVl0MKVqCVGu7+c2OEDoJJUkzF4gUz4ulT2Ca7gZ7gmpmTNldUq4PUIayto5MJVflnsqZT9S4Q4qV0m8nG+tYcgg1ssAoQuIZHYmnR7rbnVNrL9v0xTAh9oTyL4L+KI+rcoIx6vkFhzzA2TNdmlNY90xSXAFTWufptx7M1Dzd7YLagAC/GZpz4/gbDCzd9RKklwXPOzlf8ROqJ7B4kyel9jzwJ9+MZer5625BwHt6p88gq9sKuHUyhquFdH21rhU6hRk+KvFekP8zMAHkbDA5merH9mwLoQJd5JdqWYBKE+DGzeXsEJhhAyGeT6WkyF2UT7G9VJIm0kIg== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(136003)(39860400002)(376002)(346002)(396003)(230922051799003)(82310400011)(186009)(1800799012)(64100799003)(451199024)(46966006)(40470700004)(36840700001)(16526019)(40480700001)(1076003)(41300700001)(336012)(426003)(40460700003)(26005)(2616005)(316002)(36860700001)(36756003)(6916009)(81166007)(83380400001)(478600001)(356005)(82740400003)(54906003)(47076005)(70586007)(8936002)(86362001)(5660300002)(8676002)(2906002)(44832011)(70206006)(4326008)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 02:19:50.4630 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ffff5da-066e-4b3d-a2c2-08dc27834377 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF000015CC.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7205 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: Vamsi Krishna Atluri The hardware supports these speeds, so we should report them correctly. Signed-off-by: Andrew Boyer Signed-off-by: Vamsi Krishna Atluri --- drivers/net/ionic/ionic_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethdev.c index 008e50e0b9..327f6b9de5 100644 --- a/drivers/net/ionic/ionic_ethdev.c +++ b/drivers/net/ionic/ionic_ethdev.c @@ -285,6 +285,9 @@ ionic_dev_link_update(struct rte_eth_dev *eth_dev, link.link_status = RTE_ETH_LINK_UP; link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX; switch (adapter->link_speed) { + case 1000: + link.link_speed = RTE_ETH_SPEED_NUM_1G; + break; case 10000: link.link_speed = RTE_ETH_SPEED_NUM_10G; break; @@ -300,6 +303,9 @@ ionic_dev_link_update(struct rte_eth_dev *eth_dev, case 100000: link.link_speed = RTE_ETH_SPEED_NUM_100G; break; + case 200000: + link.link_speed = RTE_ETH_SPEED_NUM_200G; + break; default: link.link_speed = RTE_ETH_SPEED_NUM_NONE; break; -- 2.17.1