Skip to content

Commit

Permalink
net/mlx5: Rate limit page not found error messages
Browse files Browse the repository at this point in the history
Thousands of pages are released with free_addr() function. In case of
buggy sync between FW and driver on released address, the log will be
flooded with error messages. Use mlx5_core_warn_rl() to limit it.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
Eran Ben Elisha authored and Saeed Mahameed committed Apr 30, 2020
1 parent c655c1f commit c763694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static void free_addr(struct mlx5_core_dev *dev, u64 addr)

fwp = find_fw_page(dev, addr & MLX5_U64_4K_PAGE_MASK);
if (!fwp) {
mlx5_core_warn(dev, "page not found\n");
mlx5_core_warn_rl(dev, "page not found\n");
return;
}
free_fwp(dev, fwp);
Expand Down

0 comments on commit c763694

Please sign in to comment.