net/iavf/base: support more link speeds
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 3 Dec 2019 07:03:14 +0000 (15:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
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>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/iavf/base/iavf_adminq_cmd.h

index f7cfc0d..fa0cb23 100644 (file)
@@ -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),