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)
commit7c16f47779498650e9f11a395f8d63accedf35a3
tree21c02cf59c555caad681d41d69e1f4bcbda51caf
parent1ffd3a26f890222e49c4f4782763e2063026b611
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