]> 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)
commit3997f4697992991d4702cb5180b1210b39b2a0c7
tree63d0207e5824148ae6b55d5ba0e18f62322ef50c
parentf583dc2603c87a40d0afa61a0a482872c9ce5963
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