diff mbox series

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

Message ID 20200817123740.6938-5-william.gray@canonical.com
State New
Headers show
Series SF Case 276849 speed for CX4 VF showing as unknown in ethtool output | expand

Commit Message

William Breathitt Gray Aug. 17, 2020, 12:37 p.m. UTC
From: Mark Bloch <markb@mellanox.com>

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

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

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

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


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];