diff options
author | Michael Guralnik <michaelgur@mellanox.com> | 2019-08-19 15:08:13 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2019-08-28 10:04:51 +0300 |
commit | 00679b631eddaa0aa0ceba719fcb1f60c65da5a3 (patch) | |
tree | fec513a0107068a3ac4f143bf2f7de00bf77aef9 /drivers/net/ethernet | |
parent | bb487d29ce005416ed355dea213bbc39c03dabe7 (diff) | |
download | linux-stable-00679b631eddaa0aa0ceba719fcb1f60c65da5a3.tar.gz linux-stable-00679b631eddaa0aa0ceba719fcb1f60c65da5a3.tar.bz2 linux-stable-00679b631eddaa0aa0ceba719fcb1f60c65da5a3.zip |
net/mlx5: Set ODP capabilities for DC transport to max
In mlx5_core initialization, query max ODP capabilities for DC transport
from FW and set as current capabilities.
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index fa0e991f1983..7f70ecb1db6d 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -495,6 +495,12 @@ static int handle_hca_cap_odp(struct mlx5_core_dev *dev) ODP_CAP_SET_MAX(dev, xrc_odp_caps.write); ODP_CAP_SET_MAX(dev, xrc_odp_caps.read); ODP_CAP_SET_MAX(dev, xrc_odp_caps.atomic); + ODP_CAP_SET_MAX(dev, dc_odp_caps.srq_receive); + ODP_CAP_SET_MAX(dev, dc_odp_caps.send); + ODP_CAP_SET_MAX(dev, dc_odp_caps.receive); + ODP_CAP_SET_MAX(dev, dc_odp_caps.write); + ODP_CAP_SET_MAX(dev, dc_odp_caps.read); + ODP_CAP_SET_MAX(dev, dc_odp_caps.atomic); if (do_set) err = set_caps(dev, set_ctx, set_sz, |