diff options
author | Kamal Heib <kamalh@mellanox.com> | 2017-01-18 16:25:09 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-02-14 19:40:56 +0300 |
commit | 7c16f47779498650e9f11a395f8d63accedf35a3 (patch) | |
tree | 21c02cf59c555caad681d41d69e1f4bcbda51caf /drivers/infiniband/hw/mlx5/mlx5_ib.h | |
parent | 1ffd3a26f890222e49c4f4782763e2063026b611 (diff) | |
download | linux-7c16f47779498650e9f11a395f8d63accedf35a3.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mlx5_ib.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index dda01d7e8847..66090835de27 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -579,8 +579,15 @@ struct mlx5_ib_resources { struct mutex mutex; }; +struct mlx5_ib_q_counters { + const char **names; + size_t *offsets; + u32 num_counters; + u16 set_id; +}; + struct mlx5_ib_port { - u16 q_cnt_id; + struct mlx5_ib_q_counters q_cnts; }; struct mlx5_roce { |