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 17A3543A53; Fri, 2 Feb 2024 20:33:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1322F42E90; Fri, 2 Feb 2024 20:33:26 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2073.outbound.protection.outlook.com [40.107.244.73]) by mails.dpdk.org (Postfix) with ESMTP id 4C61342E90 for ; Fri, 2 Feb 2024 20:33:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UZ2wMz5LEdB4fwEnCN8dPePYzwwh94H/JXx62+ORIO70Jc9Uu5e33goAEB6EKVgt9y2qNl1PfdiFENrJjsLD58UPu82qDtBCdeg4BvqA4gPaK8SGdWP7O/JREJgS+2HXflRYa0u5uptqgkjlpLNTWhf6Zptc0Nl52mBN/+vJpethtYsHvXvA4corFINmoGwIdUQEauvjqrxT3a5epKtzb0t5OZCrgNx1lFlfv8aZ04OvoFzG5dr3tJ1di7udgk8Di8ay4hExVRRsmmpRIGUcQUgqYU2p4o28zuEWv9iqXOUtNmu08GJCU7rJFkgRZG0p1k/0ZA492TWXKb0I2SD+JQ== 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=P3Fgm+Ett7TBbUBkQkjD2BsJCbYrgN1bzpciStndcC7Q82f7IVg34oMAz3a/faecXGSfrMX+2AZkBtkVCSPSOIFPpsEwxl/s1pRE1mLl+dlcWebQX3BJEjMYJ6tY1zG0G66ffYm0OLTMl9t3AMy+gg32Otm5LyZMtpR39lST05YV7hWeLrQDpX9XJmYMDA2QQTy8lcPwlt6IwuvKv3zQtU4Ycx8wXZjGYZhzG1LnV/B/2/eLPn1sOt0zg+b2kp3+Cc2mYVmOvD+LKJbyxDGeokRTfVDUh3x5pxaGXTLRB0EVRj4Tsuw0m+WkxajA9R/nyV2cUtD1zqC7E4wQIMaNWg== 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=vvVb4QF5Qc17d2nIJBePuuvrT3qs6T4gSIxlwFCKg4fEJzSZbGVrDShk+OGqIda4glGtCizlLGAFNjkSNqz9Fr6cpEg16Y78BC0iBwtbHvUAjndzTosnckay7FbJpntteE2L+OtU7LT+xF1Z8hoMTkuhM/XjtqFSbKd0n6DzVao= Received: from DS7PR06CA0008.namprd06.prod.outlook.com (2603:10b6:8:2a::15) by LV8PR12MB9230.namprd12.prod.outlook.com (2603:10b6:408:186::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.22; Fri, 2 Feb 2024 19:33:22 +0000 Received: from DS1PEPF00017093.namprd03.prod.outlook.com (2603:10b6:8:2a:cafe::b0) by DS7PR06CA0008.outlook.office365.com (2603:10b6:8:2a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.29 via Frontend Transport; Fri, 2 Feb 2024 19:33:22 +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 DS1PEPF00017093.mail.protection.outlook.com (10.167.17.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7249.19 via Frontend Transport; Fri, 2 Feb 2024 19:33: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; Fri, 2 Feb 2024 13:33:20 -0600 From: Andrew Boyer To: CC: Vamsi Krishna Atluri , Andrew Boyer Subject: [PATCH 08/13] net/ionic: report 1G and 200G link speeds when applicable Date: Fri, 2 Feb 2024 11:32:33 -0800 Message-ID: <20240202193238.62669-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: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017093:EE_|LV8PR12MB9230:EE_ X-MS-Office365-Filtering-Correlation-Id: 7a0d7fe2-2e24-4b92-929c-08dc2425d114 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VItxIGGND95PP0L87RxOExpkjWErF0GMfdBkhR653deZ9uEHPqLqxHY5Uk7owEGpwvohLesRnFXFa78/v0QWjymPOR6DE4jgJw9d9UB8zgPSFesRvs6rSrMwGgYnRG0VYkOzUp+WR6q6eDtrvmgmob4SL+ym7lCtksBe6/9erzvAWmWp9rPILH/9fLfPHkwPd1IkNXJ3GXkBbQZWG8SCCfpnSLtRXUhA3ov0aKrAjdTOow4PvofKpaJ34pQ9AAMmyIl5yrMoydXKvaNZ0LniRKrGT9up2UenTFagJsfuDWWH51YDOEyjnzvDYtgNhYKkeMNlKQc67LDmIJ4o9AE7ecEvEIENxcsuRVbF0wci7h+GcufT1PCjQDxtkRN1OSJefoz9LyqBNx7wumf3qcs/eKgvpV8yc22zYSiJ8h8OItKSzBWxwB3n/6hknhmLDfVyhVhwNQoYNhgqQSTwkGBp7Za1hGDJzyaiakwAl4Ej95sNLEJvQtZHCcMSrvkU5uuQEEWm+ibKp4l8jMenEGsKFskrSdQxfbnGrYOysOUH0ImucxZa+PBDx43oul4cfi5N2WnHDKOBAGI28u4+V2LA4MNB5JaFMt3FcRj7Plo2ghR1kTi4FCV7eRjiBumIciQFG8nfTDDLed2iRK1+2cReN9SOyA88xNcOntcQebQn/6hNjWrl9SiMluOu/TwjPNiKRDDadilLL9mMioTeJmUN7HcRGpyOYx5u04T3izKpBNrzasHk9lkGODXx4bkiEB6wDSsR7gRH6NUypmoyQwNX+A== 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)(39860400002)(346002)(136003)(376002)(396003)(230922051799003)(186009)(1800799012)(82310400011)(64100799003)(451199024)(36840700001)(40470700004)(46966006)(41300700001)(16526019)(336012)(1076003)(26005)(40480700001)(2616005)(426003)(40460700003)(36860700001)(47076005)(356005)(36756003)(82740400003)(83380400001)(478600001)(6666004)(81166007)(86362001)(316002)(6916009)(2906002)(8936002)(70586007)(54906003)(5660300002)(8676002)(44832011)(4326008)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 19:33:21.9162 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a0d7fe2-2e24-4b92-929c-08dc2425d114 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: DS1PEPF00017093.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9230 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