IB/qib: Fix M_Key field in SubnGet and SubnGetResp MADs
authorMitko Haralanov <mitko@qlogic.com>
Fri, 4 Mar 2011 18:53:17 +0000 (18:53 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 Mar 2011 19:11:51 +0000 (12:11 -0700)
commit36b87b419c7616a8aaa9889566d9a9b50689dee1
treea1509da10d80a58e2803420804ed2f1d8c780f26
parent4634b7945cf0d6a66036ad10c3d658ae4eb39fa0
IB/qib: Fix M_Key field in SubnGet and SubnGetResp MADs

Set the M_Key field in SubnGet and SugnGetResp MADs based on correctly
interpreting the protection level specified in the M_KeyProtBits field.

Signed-off-by: Mitko Haralanov <mitko@qlogic.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_mad.c