All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/ixgbe: add support of 2.5G and 5G
@ 2017-07-25  2:00 Wei Dai
  2017-07-26  9:29 ` [PATCH v2] net/ixgbe: add support of 2.5G and 5G on X550 Wei Dai
  2017-07-31 18:12 ` [PATCH v6] " Wenzhuo Lu
  0 siblings, 2 replies; 18+ messages in thread
From: Wei Dai @ 2017-07-25  2:00 UTC (permalink / raw)
  To: wenzhuo.lu, konstantin.ananyev; +Cc: dev, Wei Dai

This patch adds support of 2.5G and 5G link on some
new ixgbe devices. It is based on 17.08-rc2 .

Signed-off-by: Wei Dai <wei.dai@intel.com>
---
 drivers/net/ixgbe/base/ixgbe_type.h | 2 ++
 drivers/net/ixgbe/ixgbe_ethdev.c    | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h
index bda8558..0b06fe9 100644
--- a/drivers/net/ixgbe/base/ixgbe_type.h
+++ b/drivers/net/ixgbe/base/ixgbe_type.h
@@ -3407,6 +3407,8 @@ typedef u32 ixgbe_link_speed;
 					 IXGBE_LINK_SPEED_10GB_FULL)
 #define IXGBE_LINK_SPEED_82599_AUTONEG	(IXGBE_LINK_SPEED_100_FULL | \
 					 IXGBE_LINK_SPEED_1GB_FULL | \
+					 IXGBE_LINK_SPEED_2_5GB_FULL | \
+					 IXGBE_LINK_SPEED_5GB_FULL | \
 					 IXGBE_LINK_SPEED_10GB_FULL)
 
 /* Physical layer type */
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 194058f..2fff1a3 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -3972,6 +3972,14 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,
 		link.link_speed = ETH_SPEED_NUM_1G;
 		break;
 
+	case IXGBE_LINK_SPEED_2_5GB_FULL:
+		link.link_speed = ETH_SPEED_NUM_2_5G;
+		break;
+
+	case IXGBE_LINK_SPEED_5GB_FULL:
+		link.link_speed = ETH_SPEED_NUM_5G;
+		break;
+
 	case IXGBE_LINK_SPEED_10GB_FULL:
 		link.link_speed = ETH_SPEED_NUM_10G;
 		break;
-- 
2.7.5

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

end of thread, other threads:[~2017-07-31 18:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-25  2:00 [PATCH] net/ixgbe: add support of 2.5G and 5G Wei Dai
2017-07-26  9:29 ` [PATCH v2] net/ixgbe: add support of 2.5G and 5G on X550 Wei Dai
2017-07-26 13:26   ` Lu, Wenzhuo
2017-07-26 14:10     ` Dai, Wei
2017-07-26 14:13       ` Lu, Wenzhuo
2017-07-26 14:31         ` Dai, Wei
2017-07-26 14:43   ` [PATCH v3] " Wei Dai
2017-07-26 15:01     ` Lu, Wenzhuo
2017-07-26 15:27       ` Dai, Wei
2017-07-26 15:29     ` [PATCH v4] " Wei Dai
2017-07-26 16:59       ` Lu, Wenzhuo
2017-07-26 23:57         ` Dai, Wei
2017-07-27  1:02       ` [PATCH v5] " Wei Dai
2017-07-27  1:07         ` Lu, Wenzhuo
2017-07-31 13:14         ` Ferruh Yigit
2017-07-31 17:48           ` Lu, Wenzhuo
2017-07-31 18:12 ` [PATCH v6] " Wenzhuo Lu
2017-07-31 18:19   ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.