]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2c4fc1616c5d1e378fec0abee7d17308f9bbcdf
tree6ad185ba9d93fb9d0028749c0f86d138bf969d22
parent96cff998db01368927f6bc0102788040b495211c
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