staging/rdma/hfi1: Fix Xmit Wait calculation
authorIra Weiny <iweiny@gmail.com>
Tue, 22 Dec 2015 02:57:45 +0000 (21:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:48:22 +0000 (18:48 -0800)
commitd9d3e025c0f68a1ec99ee13209d31d2a766ac56f
tree5388cad1ad9c196e9afff63ce08cf67683f9c139
parent80e4898e82e39618397d66ef5cc49529555c17ce
staging/rdma/hfi1: Fix Xmit Wait calculation

Total XMIT wait needs to sum the xmit wait values of all the VLs not just
those requested in the query.  Also, make the algorithm used for both
PortStatus and PortDataCounters the same.

Reviewed-by: Arthur Kepner <arthur.kepner@intel.com>
Reviewed-by: Breyer, Scott J <scott.j.breyer@intel.com>
Signed-off-by: Ira Weiny <iweiny@gmail.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/mad.c