]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Modify MAD reading counters method to use counter registers
authorMeny Yossefi <menyy@mellanox.com>
Thu, 18 Feb 2016 16:15:01 +0000 (18:15 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 15:57:15 +0000 (10:57 -0500)
commit58732534c569b815a4b70f3bfc9865fbfd84e6b9
tree8e3c5c25d27de695f77f5cf1f57b2d2598bbf7d8
parentf202b0d1bacfc34860911e0b078b557929b01b85
IB/mlx5: Modify MAD reading counters method to use counter registers

Modify mlx5_ib_process_mad to use PPCNT and query_vport commands
instead of MAD_IFC, as MAD_IFC is deprecated on new firmware
versions (and doesn't support RoCE anyway).

Traffic counters exist in both 32-bit and 64-bit forms.
Declaring support of extended coutners results in traffic counters
to be read in their 64-bit form only via the query_vport command.
Error counters exist only in 32-bit form and read via PPCNT command.

This commit also adds counters support in RoCE.

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/infiniband/hw/mlx5/mad.c
include/linux/mlx5/device.h