net/mlx5: IPsec: Add HW crypto offload support
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / fw.c
index c309586..02558ac 100644 (file)
@@ -250,6 +250,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
                        return err;
        }
 
+       if (MLX5_CAP_GEN(dev, ipsec_offload)) {
+               err = mlx5_core_get_caps(dev, MLX5_CAP_IPSEC);
+               if (err)
+                       return err;
+       }
+
        return 0;
 }