IB/mlx5: Fix port counter ID association to QP offset
authorAlex Vesker <valex@mellanox.com>
Wed, 13 Jul 2016 13:25:11 +0000 (16:25 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Aug 2016 18:40:49 +0000 (14:40 -0400)
commit321a9e3ebccb5e6b61bd4efbb98ae259c6b8609b
tree9b89085bfaa31ac2585953d36b1e74701cd4f808
parentb0ffeb537f3a726931d962ab6d03e34a2f070ea4
IB/mlx5: Fix port counter ID association to QP offset

The q-counter-id is given in modify-QP command associates
the QP with the counter. The offset to which the counter
ID was set is incorrect, causing IB port counters not to
count on QP.

Fixes: 0837e86a7a34 ('IB/mlx5: Add per port counters')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Tested-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c