staging/rdma/hfi1: Fix SL->SC checks
authorIra Weiny <ira.weiny@intel..com>
Wed, 3 Feb 2016 22:33:14 +0000 (14:33 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:51 +0000 (20:37 -0500)
commit31e7af1c5bcd9617c68f1bbd78a85e896caf87e4
tree7e818fc864606bfb09bbfe5e669a2fbe223c30a5
parentaffa48de8417ccdde467b075577f6e5154ff9943
staging/rdma/hfi1: Fix SL->SC checks

SLs which are mapped to SC15 are invalid and should fail the
operation.

For RC/UC QP types, verify the AH information at modify_qp time and
fail the modify_qp if the SL is invalid.

For other QP types check the SL during post_send via the new rdmavt
callback.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/qp.c
drivers/staging/rdma/hfi1/verbs.c
drivers/staging/rdma/hfi1/verbs.h