mlx4: Implement QP paravirtualization and maintain phys_pkey_cache for smp_snoop
[deliverable/linux.git] / drivers / net / ethernet / mellanox / mlx4 / main.c
index 06ef3afbc49a4979461e8f64f05f9cea15a4c13b..2294b717318086086900c30ec3bff3580157f6e6 100644 (file)
@@ -424,6 +424,17 @@ int mlx4_get_parav_qkey(struct mlx4_dev *dev, u32 qpn, u32 *qkey)
 }
 EXPORT_SYMBOL(mlx4_get_parav_qkey);
 
+void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, int i, int val)
+{
+       struct mlx4_priv *priv = container_of(dev, struct mlx4_priv, dev);
+
+       if (!mlx4_is_master(dev))
+               return;
+
+       priv->virt2phys_pkey[slave][port - 1][i] = val;
+}
+EXPORT_SYMBOL(mlx4_sync_pkey_table);
+
 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave)
 {
        struct mlx4_priv *priv = mlx4_priv(dev);
This page took 0.026026 seconds and 5 git commands to generate.