aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/main.c
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2018-01-02 16:19:29 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-01-08 11:38:50 -0700
commitdd44572aebee9260fa1d90569d20d8bab28f90ae (patch)
tree9505df30628920d0da965c981b7f868e4cba76e3 /drivers/net/ethernet/mellanox/mlx5/core/main.c
parentnet/mlx5: Add DCT command interface (diff)
downloadlinux-dev-dd44572aebee9260fa1d90569d20d8bab28f90ae.tar.xz
linux-dev-dd44572aebee9260fa1d90569d20d8bab28f90ae.zip
net/mlx5: Enable DC transport
Enable DC transport in the firmware to provide its functionality. Signed-off-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/main.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index 5f323442cc5a..1292aecb09f2 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -552,6 +552,9 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
cache_line_128byte,
cache_line_size() == 128 ? 1 : 0);
+ if (MLX5_CAP_GEN_MAX(dev, dct))
+ MLX5_SET(cmd_hca_cap, set_hca_cap, dct, 1);
+
err = set_caps(dev, set_ctx, set_sz,
MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE);