IB/mlx5: Add per port counters
authorMark Bloch <markb@mellanox.com>
Fri, 17 Jun 2016 12:10:55 +0000 (15:10 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 15:39:14 +0000 (11:39 -0400)
commit0837e86a7a3422b85aa45c6f4631f6a3f74cbd01
treecf520ecef75e917f6d7ddcca2598aa6de1c8c223
parentaf1ba291c5e498973cc325c501dd8da80b234571
IB/mlx5: Add per port counters

In order to support statistics for ports, we attach
each QP to a counter set which is dedicate to this port.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c