IB/mlx5: Update counter implementation for dual port RoCE
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 4 Jan 2018 15:25:40 +0000 (17:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jan 2018 18:42:23 +0000 (11:42 -0700)
commitaac4492ef23a176b6f1a41aadb99177eceb1fc06
treeac600d7235e182dd3dff778e4f5e6c81485247d1
parenta9e546e73ace1ebfb80dc9b55b46ace306f684cd
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>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h