IB/mlx5: Add port counter support for raw packet QP
authorAlex Vesker <valex@mellanox.com>
Sun, 28 Aug 2016 09:25:53 +0000 (12:25 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:14 +0000 (16:54 -0400)
commiteb49ab0c5f3d8e5efb696f100978bf966ecf6be3
tree365b6962b57288e39381346125d8b72595ee2923
parent0680efa21478f7b3e775bf4253c615538cef2ebf
IB/mlx5: Add port counter support for raw packet QP

Counters weren't updated due to raw packet QPs' traffic since the
counter-id was not associated with the QP. Added support for
associating the q-counter-id with the raw packet QP. The attachment
is done only when changing RQ raw packet QP state from RST to INIT
in modify-RQ command. FW support is required for the above, without
this support raw packet QP counters will not count.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c