]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net/mlx5: Set ODP capabilities for DC transport to max
authorMichael Guralnik <michaelgur@mellanox.com>
Mon, 19 Aug 2019 12:08:13 +0000 (15:08 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 28 Aug 2019 07:04:51 +0000 (10:04 +0300)
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>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/mlx5_ifc.h

index fa0e991f19835e433133853589c991ae9436f2f0..7f70ecb1db6d42804c22d5f937984a363a0ba2b8 100644 (file)
@@ -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,
index 1e55cf73e88cccb4cf13ca6cc11ed1e92eee3b01..4e278114d8b37fdf0a9540122b2badc89c54d272 100644 (file)
@@ -948,7 +948,9 @@ struct mlx5_ifc_odp_cap_bits {
 
        struct mlx5_ifc_odp_per_transport_service_cap_bits xrc_odp_caps;
 
-       u8         reserved_at_100[0x700];
+       struct mlx5_ifc_odp_per_transport_service_cap_bits dc_odp_caps;
+
+       u8         reserved_at_120[0x6E0];
 };
 
 struct mlx5_ifc_calc_op {