]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix warn print in case of TX reporter creation failure
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 19 Feb 2019 13:05:12 +0000 (15:05 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Feb 2019 21:38:24 +0000 (13:38 -0800)
commitb6493f80fd1ba7bade94c6f5724c9cb63ac739d1
treee1700e7cf5bd6c9e69c93da41e2c4d3bcb83fcad
parent34c89ecd09dce93ca58e1c20223cdd66466949cd
net/mlx5e: Fix warn print in case of TX reporter creation failure

Print warning message in case of TX reporter creation failure, only if the
return value is ERR_PTR type. NULL pointer return indicates that
NET_DEVLINK is not set, and the warning print can be skipped.

Fixes: f9154a205e65 ("net/mlx5e: Add tx reporter support")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c