linux/drivers/infiniband/hw/mlx5
Parav Pandit e1f24a79f4 IB/mlx5: Support congestion related counters
This patch adds support to query the congestion related hardware counters
through new command and links them with other hw counters being available
in hw_counters sysfs location.

In order to reuse existing infrastructure it renames related q_counter
data structures to more generic counters to reflect q_counters and
congestion counters and maybe some other counters in the future.

New hardware counters:
 * rp_cnp_handled - CNP packets handled by the reaction point
 * rp_cnp_ignored - CNP packets ignored by the reaction point
 * np_cnp_sent    - CNP packets sent by notification point to respond to
                     CE marked RoCE packets
 * np_ecn_marked_roce_packets - CE marked RoCE packets received by
                                notification point

It also avoids returning ENOSYS which is specific for invalid
system call and produces the following checkpatch.pl warning.

WARNING: ENOSYS means 'invalid syscall nr' and nothing else
+		return -ENOSYS;

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-21 12:29:31 -04:00
..
ah.c IB/mlx5: Use kernel driver to help userspace create ah 2016-12-13 13:38:49 -05:00
cmd.c IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
cmd.h IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
cq.c IB/mlx5: Fix wrong use of kfree at bad flow in create_cq_user 2017-04-21 12:26:05 -04:00
doorbell.c
gsi.c IB/mlx5: Fix iteration overrun in GSI qps 2016-08-02 14:32:51 -04:00
ib_virt.c IB/mlx5: Implement callbacks for manipulating VFs 2016-03-21 17:13:14 -04:00
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
mad.c IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
main.c IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
Makefile IB/mlx5: Add null_mkey access 2017-02-14 11:41:18 -05:00
mem.c IB/mlx5: Add MR cache for large UMR regions 2017-01-02 15:51:20 -05:00
mlx5_ib.h IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
mr.c This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
odp.c IB/mlx5: Add implicit MR support 2017-02-14 11:41:19 -05:00
qp.c IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
srq.c IB/mlx5: Fix out-of-bound access 2017-02-14 10:14:25 -05:00