DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix link speed display
@ 2019-01-23  5:30 Wenzhuo Lu
  2019-01-23  7:40 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: Wenzhuo Lu @ 2019-01-23  5:30 UTC (permalink / raw)
  To: dev; +Cc: Wenzhuo Lu

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(-)

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");
-- 
1.9.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice: fix link speed display
  2019-01-23  5:30 [dpdk-dev] [PATCH] net/ice: fix link speed display Wenzhuo Lu
@ 2019-01-23  7:40 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2019-01-23  7:40 UTC (permalink / raw)
  To: Lu, Wenzhuo, dev; +Cc: Lu, Wenzhuo



> -----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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-23  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-23  5:30 [dpdk-dev] [PATCH] net/ice: fix link speed display Wenzhuo Lu
2019-01-23  7:40 ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).