Add log prints to improve driver status following.
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
mlx5_vdpa_mem_dereg(priv);
priv->configured = 0;
priv->vid = 0;
+ DRV_LOG(INFO, "vDPA device %d was closed.", vid);
return ret;
}
return -1;
}
priv->configured = 1;
+ DRV_LOG(INFO, "vDPA device %d was configured.", vid);
return 0;
}
struct mlx5_vdpa_priv *priv = virtq->priv;
int ret = 0;
+ DRV_LOG(INFO, "Update virtq %d status %sable -> %sable.", virtq->index,
+ virtq->enable ? "en" : "dis", enable ? "en" : "dis");
if (virtq->enable == !!enable)
return 0;
virtq->enable = !!enable;