diff options
author | Mark Bloch <markb@mellanox.com> | 2016-07-19 13:54:57 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-08-03 21:03:34 -0400 |
commit | bfaf31687c2628ebb95c58a472d46db3f94c554f (patch) | |
tree | ee972554ddb5d61e872b0ee8e7929aa8fbc99ef3 /include/linux/mlx4 | |
parent | c7c122ed67e47a7d8033ae21f0cb22a21686194a (diff) |
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, | |||
1381 | int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); | 1381 | int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); |
1382 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); | 1382 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); |
1383 | int mlx4_test_interrupts(struct mlx4_dev *dev); | 1383 | int mlx4_test_interrupts(struct mlx4_dev *dev); |
1384 | int mlx4_query_diag_counters(struct mlx4_dev *dev, u8 op_modifier, | ||
1385 | const u32 offset[], u32 value[], | ||
1386 | size_t array_len, u8 port); | ||
1384 | u32 mlx4_get_eqs_per_port(struct mlx4_dev *dev, u8 port); | 1387 | u32 mlx4_get_eqs_per_port(struct mlx4_dev *dev, u8 port); |
1385 | bool mlx4_is_eq_vector_valid(struct mlx4_dev *dev, u8 port, int vector); | 1388 | bool mlx4_is_eq_vector_valid(struct mlx4_dev *dev, u8 port, int vector); |
1386 | struct cpu_rmap *mlx4_get_cpu_rmap(struct mlx4_dev *dev, int port); | 1389 | struct cpu_rmap *mlx4_get_cpu_rmap(struct mlx4_dev *dev, int port); |