net/mlx5: Query ADV_VIRTUALIZATION capabilities
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / fw.c
index 079fa44..483a518 100644 (file)
@@ -273,6 +273,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
                        return err;
        }
 
+       if (MLX5_CAP_GEN(dev, adv_virtualization)) {
+               err = mlx5_core_get_caps(dev, MLX5_CAP_ADV_VIRTUALIZATION);
+               if (err)
+                       return err;
+       }
+
        return 0;
 }