diff options
author | 2016-07-19 20:54:57 +0300 | |
---|---|---|
committer | 2016-08-03 21:03:34 -0400 | |
commit | bfaf31687c2628ebb95c58a472d46db3f94c554f (patch) | |
tree | ee972554ddb5d61e872b0ee8e7929aa8fbc99ef3 /include/linux/mlx4 | |
parent | net/mlx4: Add diagnostic counters capability bit (diff) | |
download | linux-bfaf31687c2628ebb95c58a472d46db3f94c554f.tar.gz linux-bfaf31687c2628ebb95c58a472d46db3f94c554f.tar.bz2 linux-bfaf31687c2628ebb95c58a472d46db3f94c554f.zip |
net/mlx4: Query performance and diagnostics counters
Add a function to query diagnostics counters from the firmware.
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 680d110aff05..abcce821ac00 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -1381,6 +1381,9 @@ void mlx4_fmr_unmap(struct mlx4_dev *dev, struct mlx4_fmr *fmr, int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); int mlx4_SYNC_TPT(struct mlx4_dev *dev); int mlx4_test_interrupts(struct mlx4_dev *dev); +int mlx4_query_diag_counters(struct mlx4_dev *dev, u8 op_modifier, + const u32 offset[], u32 value[], + size_t array_len, u8 port); u32 mlx4_get_eqs_per_port(struct mlx4_dev *dev, u8 port); bool mlx4_is_eq_vector_valid(struct mlx4_dev *dev, u8 port, int vector); struct cpu_rmap *mlx4_get_cpu_rmap(struct mlx4_dev *dev, int port); |