diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2016-02-23 11:25:23 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-21 23:32:35 +0300 |
commit | 3f0393a57509c200aeecc5e3984bf1a47bffc578 (patch) | |
tree | 10f074cd3204b2f47c19ff57f54e087891c00673 /drivers/net/ethernet | |
parent | b06e7de8a9d8d1d540ec122bbdf2face2a211634 (diff) | |
download | linux-3f0393a57509c200aeecc5e3984bf1a47bffc578.tar.xz |
net/mlx5_core: Introduce offload arithmetic hardware capabilities
Define the necessary hardware structures for the offload
arithmetic capabilities and read/cache them on driver load.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fw.c b/drivers/net/ethernet/mellanox/mlx5/core/fw.c index fe6dfd8697f4..75c7ae6a5cc4 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fw.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fw.c @@ -145,6 +145,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev) return err; } + if (MLX5_CAP_GEN(dev, vector_calc)) { + err = mlx5_core_get_caps(dev, MLX5_CAP_VECTOR_CALC); + if (err) + return err; + } + return 0; } |