[BIONIC/linux-azure-4.15][PATCH 1/3] net/mlx5: Expose link speed directly

William Breathitt Gray william.gray at canonical.com
Mon Aug 17 12:37:38 UTC 2020


From: Mark Bloch <markb at mellanox.com>

Expose port rate as part of the port speed register fields.

Signed-off-by: Mark Bloch <markb at mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm at mellanox.com>

BugLink: https://bugs.launchpad.net/bugs/1876770

(backported from commit dc392fc56f39a00a46d6db2d150571ccafe99734)
[ vilhelmgray: context adjustment ]
Signed-off-by: William Breathitt Gray <william.gray at canonical.com>
---
 include/linux/mlx5/mlx5_ifc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index b4f38bb534d2..d54a04326e37 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -7409,7 +7409,8 @@ struct mlx5_ifc_ptys_reg_bits {
 	u8         proto_mask[0x3];
 
 	u8         an_status[0x4];
-	u8         reserved_at_24[0x3c];
+	u8         reserved_at_24[0x2c];
+	u8         data_rate_oper[0x10];
 
 	u8         eth_proto_capability[0x20];
 
-- 
2.25.1




More information about the kernel-team mailing list