net/ixgbe: report 10Mbps link speed for x553
authorWei Zhao <wei.zhao1@intel.com>
Tue, 30 Jun 2020 01:16:51 +0000 (09:16 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
For ixgbe x553(IXGBE_DEV_ID_X550EM_A_1G_T) it support 10M
link speed, so add the support link speed info for 10Mb/s.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c

index 248f21d..095f1bd 100644 (file)
@@ -4307,6 +4307,10 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,
                        link.link_speed = ETH_SPEED_NUM_100M;
                break;
 
+       case IXGBE_LINK_SPEED_10_FULL:
+               link.link_speed = ETH_SPEED_NUM_10M;
+               break;
+
        case IXGBE_LINK_SPEED_100_FULL:
                link.link_speed = ETH_SPEED_NUM_100M;
                break;