summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorAharon Landau <aharonl@mellanox.com>2020-09-17 12:02:22 +0300
committerLeon Romanovsky <leonro@nvidia.com>2020-09-17 19:33:03 +0300
commite27014bdb47eb435f78573685f4196c07329f1f7 (patch)
tree5946b6581814bbc3a4482d112f6d43dee47b906b /include/linux/mlx5/port.h
parent639bf4415cadff4c18e13aa5cb0dba2d443e3aa7 (diff)
downloadlinux-e27014bdb47eb435f78573685f4196c07329f1f7.tar.xz
RDMA/mlx5: Delete duplicated mlx5_ptys_width enum
Combine two same enums to avoid duplication. Signed-off-by: Aharon Landau <aharonl@mellanox.com> Reviewed-by: Michael Guralnik <michaelgur@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include/linux/mlx5/port.h')
-rw-r--r--include/linux/mlx5/port.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h
index 4d33ae0c2d97..23edd2db4803 100644
--- a/include/linux/mlx5/port.h
+++ b/include/linux/mlx5/port.h
@@ -125,6 +125,14 @@ enum mlx5e_connector_type {
MLX5E_CONNECTOR_TYPE_NUMBER,
};
+enum mlx5_ptys_width {
+ MLX5_PTYS_WIDTH_1X = 1 << 0,
+ MLX5_PTYS_WIDTH_2X = 1 << 1,
+ MLX5_PTYS_WIDTH_4X = 1 << 2,
+ MLX5_PTYS_WIDTH_8X = 1 << 3,
+ MLX5_PTYS_WIDTH_12X = 1 << 4,
+};
+
#define MLX5E_PROT_MASK(link_mode) (1 << link_mode)
#define MLX5_GET_ETH_PROTO(reg, out, ext, field) \
(ext ? MLX5_GET(reg, out, ext_##field) : \