IB/hfi1: Correctly obtain the full service class
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 17:50:28 +0000 (10:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:27 +0000 (16:32 -0400)
commitde882ff5b8640c34d5f1d5dfd2f22f405465aa19
tree63d0207e5824148ae6b55d5ba0e18f62322ef50c
parent33a9eb527172cb46711705c858ccd605e32c82f9
IB/hfi1: Correctly obtain the full service class

The function hdr2sc was using an unshifted mask to obtain
the 5th bit of the service class.  Correct the issue by using
the shifted mask.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/hfi.h