aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mlx5_ib.h
diff options
context:
space:
mode:
authorDaniel Jurgens <danielj@mellanox.com>2018-01-04 17:25:40 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-01-08 11:42:23 -0700
commitaac4492ef23a176b6f1a41aadb99177eceb1fc06 (patch)
treeac600d7235e182dd3dff778e4f5e6c81485247d1 /drivers/infiniband/hw/mlx5/mlx5_ib.h
parentIB/mlx5: Change debugfs to have per port contents (diff)
downloadlinux-dev-aac4492ef23a176b6f1a41aadb99177eceb1fc06.tar.xz
linux-dev-aac4492ef23a176b6f1a41aadb99177eceb1fc06.zip
IB/mlx5: Update counter implementation for dual port RoCE
Update the counter interface for multiple ports. Some counter sets always comes from the primary device. Port specific counters should be accessed per mlx5_core_dev not always through the IB master mdev. Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index 92faba9a47af..51228dfcfbe7 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -652,6 +652,7 @@ struct mlx5_ib_counters {
u32 num_q_counters;
u32 num_cong_counters;
u16 set_id;
+ bool set_id_valid;
};
struct mlx5_ib_multiport_info;