net/mlx5e: Avoid query PPCNT register if not supported by the device
authorEyal Davidovich <eyald@mellanox.com>
Sun, 7 Oct 2018 12:18:37 +0000 (15:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 11 Dec 2018 22:52:20 +0000 (14:52 -0800)
commit75370eb0d3b802f54600f2fc3ae5255fe9270112
tree6ad185ba9d93fb9d0028749c0f86d138bf969d22
parent939de57d30344ce728b0de61be87984e75af420e
net/mlx5e: Avoid query PPCNT register if not supported by the device

PPCNT is not supported if PCAM access reg is supported and ppcnt bit is clear.

Signed-off-by: Eyal Davidovich <eyald@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
include/linux/mlx5/mlx5_ifc.h