From: Ajit Khaparde Date: Fri, 26 Jan 2018 17:31:59 +0000 (-0800) Subject: net/bnxt: add 100G speed detection X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=90ed2b72291a;p=dpdk.git net/bnxt: add 100G speed detection When the driver is loaded on a 100G NIC, the port speed is not displayed correctly. Parse the 100G speed before displaying it. Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 8fac05251c..4987cf0a98 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -2140,6 +2140,9 @@ static uint32_t bnxt_parse_hw_link_speed(uint16_t hw_link_speed) case HWRM_PORT_PHY_QCFG_OUTPUT_LINK_SPEED_50GB: eth_link_speed = ETH_SPEED_NUM_50G; break; + case HWRM_PORT_PHY_QCFG_OUTPUT_LINK_SPEED_100GB: + eth_link_speed = ETH_SPEED_NUM_100G; + break; case HWRM_PORT_PHY_QCFG_OUTPUT_LINK_SPEED_2GB: default: PMD_DRV_LOG(ERR, "HWRM link speed %d not defined\n",