]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cb236193f81423883f47b6ad5fe8df1fdbf5ea1
tree365b6962b57288e39381346125d8b72595ee2923
parentea9efd5d5bfde4112d43eb3a8fad1052eb95f1f6
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