summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorTim Wright2017-05-01 18:30:08 +0200
committerDoug Ledford2017-05-01 21:04:23 +0200
commit133bea04ff6fd715d8140edca9d6c7337249571b (patch)
treed6067da9d2dadc7d91a6e6e20e834d6714a9389e /include/linux/mlx5/mlx5_ifc.h
parentIB/ocrdma: fix out of bounds access to local buffer (diff)
downloadkernel-qcow2-linux-133bea04ff6fd715d8140edca9d6c7337249571b.tar.gz
kernel-qcow2-linux-133bea04ff6fd715d8140edca9d6c7337249571b.tar.xz
kernel-qcow2-linux-133bea04ff6fd715d8140edca9d6c7337249571b.zip
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>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 954f42c268a4..32de0724b400 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1456,7 +1456,9 @@ struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
u8 vl_15_dropped[0x10];
- u8 reserved_at_a0[0xa0];
+ u8 reserved_at_a0[0x80];
+
+ u8 port_xmit_wait[0x20];
};
struct mlx5_ifc_eth_per_traffic_grp_data_layout_bits {