]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging/rdma/hfi1: Put QPs into error state after SL->SC table changes
authorKaike Wan <kaike.wan@intel.com>
Sun, 14 Feb 2016 20:10:20 +0000 (12:10 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:08 +0000 (20:38 -0500)
commit0ec79e875ada58bd6598d8965f9079fe1a662950
tree3cd22a969148a1dbb8b8187ce2210c6772025def
parente16689e49216d08336da2d96cbc8c4b6b914dc99
staging/rdma/hfi1: Put QPs into error state after SL->SC table changes

If an SL->SC mapping table change occurs after an RC/UC QP is created,
there is no mechanism to change the SC nor the VL for that QP. The fix
is to place the QP into error state so that ULP can recreate the QP with
the new SL->SC mapping.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/mad.c
drivers/staging/rdma/hfi1/qp.c
drivers/staging/rdma/hfi1/qp.h