IB/hfi1: Return SC2VL mappings to FM with VL15 instead of ILLEGAL_VL
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Sun, 9 Apr 2017 17:16:09 +0000 (10:16 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:48:01 +0000 (13:48 -0400)
commit3ca4fbc84a17b5c4f6c675e60ec5d3470019a83a
treef1b437da083270d7f3461cd312f316bd14444346
parentdb730894f4f7e7afcaf31d17679ed58b4f781500
IB/hfi1: Return SC2VL mappings to FM with VL15 instead of ILLEGAL_VL

VL15 in the SC2VL table is used to indicate an invalid SC
for the FM, however, internally the driver remaps SCs from
VL15 to ILLEGAL_VL to prevent error counts. This mapping
confuses the FM when performing a sweep, making it return
a table mismatch error. Have SMA convert ILLEGAL_VL
to VL15 entries for the SC2VL table queries.

Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/mad.c