]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Expose Q counters groups only if they are supported by FW
authorKamal Heib <kamalh@mellanox.com>
Wed, 18 Jan 2017 13:25:09 +0000 (15:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 16:40:56 +0000 (11:40 -0500)
commit264564a0b24643961c6d75f6085c2e3ecd5cd7b1
tree21c02cf59c555caad681d41d69e1f4bcbda51caf
parent6b3731b48c7fd20f6f20b96239545228d96738a9
IB/mlx5: Expose Q counters groups only if they are supported by FW

This patch modify the Q counters implementation, so each one of the
three Q counters groups will be exposed by the driver only if they are
supported by the firmware.

Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Reviewed-by: Mark Bloch <markb@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