diff options
author | Michael Guralnik <michaelgur@mellanox.com> | 2018-12-09 12:49:54 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-12-12 00:38:16 +0300 |
commit | d764970bcea34b2d907ef1b9fe29d09b17099552 (patch) | |
tree | 443e97e03a0cf4dc5b893a3841e460d0ea29110b /drivers/infiniband/hw/mlx5/main.c | |
parent | 28ab1bb0e8f031dd7dd3462ff8f6b2e93fc77e7f (diff) | |
download | linux-d764970bcea34b2d907ef1b9fe29d09b17099552.tar.xz |
IB/mlx5: Add 2X width support to query_port
Report to the user 2x width over MAD interface.
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 5edd8d5f151f..af091f363b81 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -1108,6 +1108,8 @@ static void translate_active_width(struct ib_device *ibdev, u8 active_width, if (active_width & MLX5_IB_WIDTH_1X) *ib_width = IB_WIDTH_1X; + else if (active_width & MLX5_IB_WIDTH_2X) + *ib_width = IB_WIDTH_2X; else if (active_width & MLX5_IB_WIDTH_4X) *ib_width = IB_WIDTH_4X; else if (active_width & MLX5_IB_WIDTH_8X) |