staging/hfi1: Fix Xmit Wait calculation
authorIra Weiny <iweiny@gmail.com>
Mon, 11 Jan 2016 23:31:44 +0000 (18:31 -0500)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:03 +0000 (20:37 -0500)
commitf4ddedf4263bb94c81b2647ec5cf5ee79c6c20b0
tree0a8b0fe9627c2a45284e487d313f5ccddd06b031
parent624be1dbdb7c69c0218e78a3afec98a09a08e747
staging/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: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/mad.c