]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/mlx5_core: Add helper function to read IB error counters
authorMeny Yossefi <menyy@mellanox.com>
Thu, 18 Feb 2016 16:15:00 +0000 (18:15 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 15:57:15 +0000 (10:57 -0500)
commit1c64bf6f291cae7cbe779e407db9477378bb4e7d
treeb8ef1f134babc7928cb754827a4db8ac6dbeaa28
parentb54ba2772b7af82a07eb48f88c88f7cadfb33401
net/mlx5_core: Add helper function to read IB error counters

Added helper function to read IB standard error counters
via the PPCNT register.

The PPCNT register read command provides the 32-bit error counters
of both IB/RoCE link layer and transport layer.

Signed-off-by: Meny Yossefi <menyy@mellanox.com>
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h