]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44f4458e34d2ccaedf3bfc1ff95cf30dff21c617
treeac600d7235e182dd3dff778e4f5e6c81485247d1
parenta8d511da9a5948f78ce3dc6bde4ae87e0d4719d1
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