From 614d5eeffba0f184cc5f913c7184ba624e961303 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 3 Dec 2019 15:03:14 +0800 Subject: [PATCH] net/iavf/base: support more link speeds Add 2.5G and 5G link speed support. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/iavf/base/iavf_adminq_cmd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/iavf/base/iavf_adminq_cmd.h b/drivers/net/iavf/base/iavf_adminq_cmd.h index f7cfc0dda6..fa0cb23ac8 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), -- 2.20.1