[13/17] net/iavf/base: add more link speed support
diff mbox series

Message ID 20191203070318.39620-14-qi.z.zhang@intel.com
State Accepted, archived
Delegated to: xiaolong ye
Headers show
Series
  • iavf base code update
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Qi Zhang Dec. 3, 2019, 7:03 a.m. UTC
Add 2.5G and 5G link speed support.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
 drivers/net/iavf/base/iavf_adminq_cmd.h | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/drivers/net/iavf/base/iavf_adminq_cmd.h b/drivers/net/iavf/base/iavf_adminq_cmd.h
index f7cfc0dda..fa0cb23ac 100644
--- a/drivers/net/iavf/base/iavf_adminq_cmd.h
+++ b/drivers/net/iavf/base/iavf_adminq_cmd.h
@@ -471,17 +471,21 @@  struct iavf_aqc_get_veb_parameters_completion {
 
 IAVF_CHECK_CMD_LENGTH(iavf_aqc_get_veb_parameters_completion);
 
+#define IAVF_LINK_SPEED_2_5GB_SHIFT	0x0
 #define IAVF_LINK_SPEED_100MB_SHIFT	0x1
 #define IAVF_LINK_SPEED_1000MB_SHIFT	0x2
 #define IAVF_LINK_SPEED_10GB_SHIFT	0x3
 #define IAVF_LINK_SPEED_40GB_SHIFT	0x4
 #define IAVF_LINK_SPEED_20GB_SHIFT	0x5
 #define IAVF_LINK_SPEED_25GB_SHIFT	0x6
+#define IAVF_LINK_SPEED_5GB_SHIFT	0x7
 
 enum iavf_aq_link_speed {
 	IAVF_LINK_SPEED_UNKNOWN	= 0,
 	IAVF_LINK_SPEED_100MB	= (1 << IAVF_LINK_SPEED_100MB_SHIFT),
 	IAVF_LINK_SPEED_1GB	= (1 << IAVF_LINK_SPEED_1000MB_SHIFT),
+	IAVF_LINK_SPEED_2_5GB	= (1 << IAVF_LINK_SPEED_2_5GB_SHIFT),
+	IAVF_LINK_SPEED_5GB	= (1 << IAVF_LINK_SPEED_5GB_SHIFT),
 	IAVF_LINK_SPEED_10GB	= (1 << IAVF_LINK_SPEED_10GB_SHIFT),
 	IAVF_LINK_SPEED_40GB	= (1 << IAVF_LINK_SPEED_40GB_SHIFT),
 	IAVF_LINK_SPEED_20GB	= (1 << IAVF_LINK_SPEED_20GB_SHIFT),