diff options
author | Aharon Landau <aharonl@mellanox.com> | 2020-09-17 12:02:22 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2020-09-17 19:33:03 +0300 |
commit | e27014bdb47eb435f78573685f4196c07329f1f7 (patch) | |
tree | 5946b6581814bbc3a4482d112f6d43dee47b906b /include/linux/mlx5/port.h | |
parent | 639bf4415cadff4c18e13aa5cb0dba2d443e3aa7 (diff) | |
download | linux-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.h | 8 |
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) : \ |