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 0985343A2A; Wed, 7 Feb 2024 04:14:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28A2F42DF1; Wed, 7 Feb 2024 04:14:28 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2059.outbound.protection.outlook.com [40.107.95.59]) by mails.dpdk.org (Postfix) with ESMTP id ACFCA42D9D for ; Wed, 7 Feb 2024 04:14:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hnu9of2Uqb6xpXol2Huhwct+PUcuGf7lfsr8NTu3wq4TXawl+kRM2I596vp5Rl7N8348EZe1VKiVDpfH+fRubN8FUFGP1C0fjfDq+YclXH4RssB/DdOmmd3I7x7PbOVC9CFKWSWrcrXngJkmHpwVPhFaCRXICAIubQa80MSX4/RjmB5XeXeuGzD+xhzGdp88uZxO1h0pPgfPciCrlThviz0rG2L8BKvXepHSrdXH0/YDKNXHbzwoa0MQfFJJvMVZtmFhe3+RMbw44elpg2HRD9o7mzcHVgG2RQQ7lQtjPtNrxnPQBc+KMtwDkLBS3oL73TqVXT89582eEJw2P6LaXA== 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=Mud7eW8ehzyayk94GxmYlByg4wBZClN0osnCczrdqgU1qidcjT7JagFY4a0FwzoWEmjnuB3Ga9hIeHHFnuLosk+5D8KXMLSBW0g18owuxfSUWXf6brM2jGZ/A4zOUl22pSjF9+yokCBgcBrjnfDIwe5RC5Ht+MT5PnP6bnVcETXVGvpXO86AAMcbzoG/PyvfV5oQkoDfqPhUDxmTxReHw8ZbvtJmV1jFsFXcYyLjdf9AC+GAq6OqQyY4EoRfQNgQNjPwh9P43IcDzgzWrse3/n4PO7Zy3z/Np0GkUOZVKyv0LbQ4Cgs5TdTSlz6rrD7yQZzCSonJ/LocgZmE+Ki2Bg== 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=lif+A2uK6ixbsI7kR7/8fMXFlr+6O2SNA5buhbN5rTgu4rZ8pgRgYyQ7woN7FAnOgdTxepOo3jPnGvtlHqkbYb3oETlP1DOkZMR9fDRdnu3j9dQJsTTiKuocmynxoAy9qcc9k0IaoB9YO5seNu9o8KLkV+kEDSIV0mmdcnvp/o0= Received: from DM6PR02CA0061.namprd02.prod.outlook.com (2603:10b6:5:177::38) by BN9PR12MB5161.namprd12.prod.outlook.com (2603:10b6:408:11a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17; Wed, 7 Feb 2024 03:14:21 +0000 Received: from CO1PEPF000044FB.namprd21.prod.outlook.com (2603:10b6:5:177:cafe::fb) by DM6PR02CA0061.outlook.office365.com (2603:10b6:5:177::38) 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 03:14:21 +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 CO1PEPF000044FB.mail.protection.outlook.com (10.167.241.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7292.0 via Frontend Transport; Wed, 7 Feb 2024 03:14:21 +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 21:14:16 -0600 From: Andrew Boyer To: CC: Vamsi Krishna Atluri , Andrew Boyer Subject: [PATCH v3 08/13] net/ionic: report 1G and 200G link speeds when applicable Date: Tue, 6 Feb 2024 19:13:12 -0800 Message-ID: <20240207031317.32293-9-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240207031317.32293-1-andrew.boyer@amd.com> References: <20240202193238.62669-1-andrew.boyer@amd.com> <20240207031317.32293-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: CO1PEPF000044FB:EE_|BN9PR12MB5161:EE_ X-MS-Office365-Filtering-Correlation-Id: 5caef424-5ee5-40d9-8d35-08dc278ae105 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hWtE4NP4KIRQf2z1CFrTdGaA/KZq1CVCbzPCV5SWJvyozmITZuD4G2aV5Y1BHT76IgvFjFkz7ODyY5NIKdtEH1fvGD40ELYdc3BQzUOg21LvF2EV3hOTWb0KOrsg/CMrrNCCmaEVNMZIczgjPmPiPtNW5IxMiJ7jSDgepd3thPCYj0xAVy9HYCiiXbjDucJIgSk8pl7fWtmaers9OqFnbyQ6kMegxekxKpNITnfbt0EiIQnlWfBHE2ydeG54hmrpP5+8Zs4Z6OZ5MpPvk0zRl//1cahRdbJgvapbDaQBT6CQMaj3B0NIWZmamx69pY/fiHPj+PHp2t3Pzicc8vxa5fKljbN1DWJfemzJH0enD2tC1ccuBwZDp97MY33Qj/mTYFTvekdNqpc8b4lCBmLam21zdVLRAWcwRyslU7xMyFGSNq+ZGfQ4Ww924jM3qH+pjoOF1q2fTKNvd8tftC/Iqk44+8mi3fxCFT4z+/akL2JS3XMqxcIEHb2A1sg3Wqcqm28oDcOtrqW26AMOHy2EC1OlxbzrFk9xs8QTFetxuw0vOvW3AmziCePWADuLyTlA2Lb7boiqk/yzl3wQ4Nwg0EKbxT0q2hPGvUbkjjUCL1luswAZ0BoIFRHulDHZirk88Vxy8MXIJgRim7sprwkI9hb6ydjb1Jcgys/s3SJFuxOjpQHtPoeggoEsO2t2yXMlzoHAMfbSZn2783a5nAfy3GDGthqAacXRSMlyZ4nyiQ5QYt/C1uR21vz1O05EY8Fk8/N6n4fPkjnyChCvrTUIzA== 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)(376002)(39860400002)(346002)(396003)(230922051799003)(451199024)(82310400011)(1800799012)(186009)(64100799003)(46966006)(40470700004)(36840700001)(41300700001)(4326008)(26005)(2616005)(6666004)(8936002)(2906002)(16526019)(86362001)(70586007)(70206006)(44832011)(8676002)(47076005)(5660300002)(478600001)(316002)(54906003)(82740400003)(81166007)(356005)(426003)(83380400001)(336012)(6916009)(36860700001)(1076003)(36756003)(40480700001)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 03:14:21.2569 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5caef424-5ee5-40d9-8d35-08dc278ae105 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: CO1PEPF000044FB.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5161 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