IB/ipoib: Add readout of statistics using ethtool
authorHans Westgaard Ry <hans.westgaard.ry@oracle.com>
Thu, 21 Apr 2016 11:13:21 +0000 (13:13 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:43 +0000 (19:39 -0400)
commite3614bc9dc448c3395adf311098dfc64abcc5a35
tree06c2304980cb3e687c7dfc689cbba82309b42a56
parent01690e9c70c0b42072d6c82470d78b747fcc5c70
IB/ipoib: Add readout of statistics using ethtool

IPoIB collects statistics of traffic including number of packets
sent/received, number of bytes transferred, and certain errors. This
patch makes these statistics available to be queried by ethtool.

Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c