net/ice: fix link speed display
diff mbox series

Message ID 1548221429-24538-1-git-send-email-wenzhuo.lu@intel.com
State Accepted, archived
Delegated to: Qi Zhang
Headers show
Series
  • net/ice: fix link speed display
Related show

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Lu, Wenzhuo Jan. 23, 2019, 5:30 a.m. UTC
Fix the issue that the link speed is unknown.

Fixes: 690175ee51bf ("net/ice: support getting device information")
Fixes: cf911d90e366 ("net/ice: support link update")

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comments

Zhang, Qi Z Jan. 23, 2019, 7:40 a.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu
> Sent: Wednesday, January 23, 2019 1:30 PM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Subject: [dpdk-dev] [PATCH] net/ice: fix link speed display
> 
> Fix the issue that the link speed is unknown.
> 
> Fixes: 690175ee51bf ("net/ice: support getting device information")
> Fixes: cf911d90e366 ("net/ice: support link update")
> 
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi

Patch
diff mbox series

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index b450115..6ab66fa 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -1899,7 +1899,9 @@  static int ice_init_rss(struct ice_pf *pf)
 			       ETH_LINK_SPEED_10G |
 			       ETH_LINK_SPEED_20G |
 			       ETH_LINK_SPEED_25G |
-			       ETH_LINK_SPEED_40G;
+			       ETH_LINK_SPEED_40G |
+			       ETH_LINK_SPEED_50G |
+			       ETH_LINK_SPEED_100G;
 
 	dev_info->nb_rx_queues = dev->data->nb_rx_queues;
 	dev_info->nb_tx_queues = dev->data->nb_tx_queues;
@@ -2010,6 +2012,12 @@  static int ice_init_rss(struct ice_pf *pf)
 	case ICE_AQ_LINK_SPEED_40GB:
 		link.link_speed = ETH_SPEED_NUM_40G;
 		break;
+	case ICE_AQ_LINK_SPEED_50GB:
+		link.link_speed = ETH_SPEED_NUM_50G;
+		break;
+	case ICE_AQ_LINK_SPEED_100GB:
+		link.link_speed = ETH_SPEED_NUM_100G;
+		break;
 	case ICE_AQ_LINK_SPEED_UNKNOWN:
 	default:
 		PMD_DRV_LOG(ERR, "Unknown link speed");