|
@@ -2260,6 +2260,22 @@ void mlx4_counter_free(struct mlx4_dev *dev, u32 idx)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(mlx4_counter_free);
|
|
|
|
|
|
+void mlx4_set_admin_guid(struct mlx4_dev *dev, __be64 guid, int entry, int port)
|
|
|
+{
|
|
|
+ struct mlx4_priv *priv = mlx4_priv(dev);
|
|
|
+
|
|
|
+ priv->mfunc.master.vf_admin[entry].vport[port].guid = guid;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(mlx4_set_admin_guid);
|
|
|
+
|
|
|
+__be64 mlx4_get_admin_guid(struct mlx4_dev *dev, int entry, int port)
|
|
|
+{
|
|
|
+ struct mlx4_priv *priv = mlx4_priv(dev);
|
|
|
+
|
|
|
+ return priv->mfunc.master.vf_admin[entry].vport[port].guid;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(mlx4_get_admin_guid);
|
|
|
+
|
|
|
static int mlx4_setup_hca(struct mlx4_dev *dev)
|
|
|
{
|
|
|
struct mlx4_priv *priv = mlx4_priv(dev);
|