net/mlx5: Add function ID to reclaim pages debug log
authorAvihu Hagag <avihuh@mellanox.com>
Mon, 8 Jun 2020 10:53:09 +0000 (13:53 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 09:37:29 +0000 (02:37 -0700)
Add function ID to reclaim pages debug log for better user visibility.

Signed-off-by: Avihu Hagag <avihuh@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c

index 1b20e33..a4a23a2 100644 (file)
@@ -480,7 +480,8 @@ static int reclaim_pages(struct mlx5_core_dev *dev, u32 func_id, int npages,
        MLX5_SET(manage_pages_in, in, input_num_entries, npages);
        MLX5_SET(manage_pages_in, in, embedded_cpu_function, ec_function);
 
-       mlx5_core_dbg(dev, "npages %d, outlen %d\n", npages, outlen);
+       mlx5_core_dbg(dev, "func 0x%x, npages %d, outlen %d\n",
+                     func_id, npages, outlen);
        err = reclaim_pages_cmd(dev, in, sizeof(in), out, outlen);
        if (err) {
                mlx5_core_err(dev, "failed reclaiming pages: err %d\n", err);