diff options
author | Gal Pressman | 2016-11-17 12:46:01 +0100 |
---|---|---|
committer | David S. Miller | 2016-11-18 18:08:58 +0100 |
commit | 7f503169cabd70c1f13b9279c50eca7dfb9a7d51 (patch) | |
tree | ad207568990389493f1538c4c1ab1aeec16a862c /include/linux/mlx5/device.h | |
parent | net/mlx5: Set driver version into firmware (diff) | |
download | kernel-qcow2-linux-7f503169cabd70c1f13b9279c50eca7dfb9a7d51.tar.gz kernel-qcow2-linux-7f503169cabd70c1f13b9279c50eca7dfb9a7d51.tar.xz kernel-qcow2-linux-7f503169cabd70c1f13b9279c50eca7dfb9a7d51.zip |
net/mlx5: Add MPCNT register infrastructure
Add the needed infrastructure for future use of MPCNT register.
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r-- | include/linux/mlx5/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 52b437431c6a..9f489365b3d3 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -1071,6 +1071,11 @@ enum { MLX5_INFINIBAND_PORT_COUNTERS_GROUP = 0x20, }; +enum { + MLX5_PCIE_PERFORMANCE_COUNTERS_GROUP = 0x0, + MLX5_PCIE_TIMERS_AND_STATES_COUNTERS_GROUP = 0x2, +}; + static inline u16 mlx5_to_sw_pkey_sz(int pkey_sz) { if (pkey_sz > MLX5_MAX_LOG_PKEY_TABLE) |