Skip to content

Commit

Permalink
net/mlx5e: IPoIB, Add support for XDR speed
Browse files Browse the repository at this point in the history
Add XDR IB PTYS coding and XDR speed 200Gbps.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Dragos Tatulea authored and Saeed Mahameed committed Feb 4, 2023
1 parent 7eef930 commit ce23177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ enum mlx5_ptys_rate {
MLX5_PTYS_RATE_EDR = 1 << 5,
MLX5_PTYS_RATE_HDR = 1 << 6,
MLX5_PTYS_RATE_NDR = 1 << 7,
MLX5_PTYS_RATE_XDR = 1 << 8,
};

static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
Expand All @@ -185,6 +186,7 @@ static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
case MLX5_PTYS_RATE_EDR: return 25000;
case MLX5_PTYS_RATE_HDR: return 50000;
case MLX5_PTYS_RATE_NDR: return 100000;
case MLX5_PTYS_RATE_XDR: return 200000;
default: return -1;
}
}
Expand Down

0 comments on commit ce23177

Please sign in to comment.