From: Matan Azrad Date: Tue, 24 Mar 2020 14:24:37 +0000 (+0000) Subject: vdpa/mlx5: add logs X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e60b10f2601162354b01cb64b984c8066dd3dd16;p=dpdk.git vdpa/mlx5: add logs Add log prints to improve driver status following. Signed-off-by: Matan Azrad Acked-by: Viacheslav Ovsiienko Reviewed-by: Maxime Coquelin --- diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c index b9279ac4f7..f1bfe7afd1 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa.c @@ -214,6 +214,7 @@ mlx5_vdpa_dev_close(int vid) mlx5_vdpa_mem_dereg(priv); priv->configured = 0; priv->vid = 0; + DRV_LOG(INFO, "vDPA device %d was closed.", vid); return ret; } @@ -239,6 +240,7 @@ mlx5_vdpa_dev_config(int vid) return -1; } priv->configured = 1; + DRV_LOG(INFO, "vDPA device %d was configured.", vid); return 0; } diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c index 9f8af4ce4a..9c11452330 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c @@ -123,6 +123,8 @@ mlx5_vdpa_virtq_enable(struct mlx5_vdpa_virtq *virtq, int enable) 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;