]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f3e698de9aecc6c4d52bd5b880c445689afbb78
tree63d0207e5824148ae6b55d5ba0e18f62322ef50c
parent73f7480e8771c09ede9bfcecaa03f004cca9bc2e
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