IB/mlx5: Add port_xmit_wait to counter registers read
authorTim Wright <tim@binbash.co.uk>
Mon, 1 May 2017 16:30:08 +0000 (17:30 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 1 May 2017 19:04:23 +0000 (15:04 -0400)
commit133bea04ff6fd715d8140edca9d6c7337249571b
treed6067da9d2dadc7d91a6e6e20e834d6714a9389e
parent062d0f22a30c39840ea49b72cfcfc1aa4cc538fa
IB/mlx5: Add port_xmit_wait to counter registers read

Add port_xmit_wait to the error counters read by mlx5_ib_process_mad to
ensure sysfs port counter provides correct value for PortXmitWait.
Otherwise the sysfs port_xmit_wait file always contains zero.

The previous MAD_IFC implementation populated this counter, but it was
removed during the migration to PPCNT for error counters (32-bit only).

Signed-off-by: Tim Wright <tim@binbash.co.uk>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mad.c
include/linux/mlx5/mlx5_ifc.h