IB/mlx5: Add port counter support for Receive WQs
authorMajd Dibbiny <majd@mellanox.com>
Wed, 18 Jan 2017 13:25:10 +0000 (15:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 16:41:09 +0000 (11:41 -0500)
commit23a6964e3adb0796e1633562a574839b92360cb6
treeb9fb4d0763ab99f74d086b9f26be880f7b382a40
parent7c16f47779498650e9f11a395f8d63accedf35a3
IB/mlx5: Add port counter support for Receive WQs

Counters weren't updated due to Receive WQs' traffic since the
counter-id was not associated with the RQ.

Added support for associating the q-counter-id with the Receive WQ.
The attachment is done only when changing WQ's state from RESET to
READY in modify-WQ command.

FW support is required for the above, without this support
Receive WQ counters will not count.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/mlx5_ifc.h