IB core: Add port_xmit_wait counter
authorChristoph Lameter <cl@linux.com>
Fri, 8 Jul 2016 15:27:42 +0000 (10:27 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 12 Jul 2016 14:46:24 +0000 (10:46 -0400)
commitc5a81d11d756bfa2b7215463b5908006871bd4fa
tree3ef8d78b8ab848aa654d3ca5e869d54d2bafc06d
parent98f179a5eaf77eaac49df3d0c217c6eaaba8c0db
IB core: Add port_xmit_wait counter

Add the missing port_xmit_wait counter. This counter is displayed through
some tools like perfquery but is not available via sysfs.

For the PORT_PMA_ATTR macro the _counter field is set to zero
allowing us to specify the offset directly like with PORT_PMA_ATTR_EXT

See also the earlier work in 2008 by Vladimir Skolovsky

https://www.mail-archive.com/general@lists.openfabrics.org/msg20313.html

Signed-off-by: Vladimir Sokolvsky <vlad@mellanox.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sysfs.c