On Tue, Aug 25, 2020 at 07:07:54PM +0800, Weihang Li wrote: > From: Lang Cheng <chenglang@xxxxxxxxxx> > > It should be considered as an illegal operation if the ULP attempts to > modify a QP from another state to the current hardware state. Otherwise, > the ULP can modify some fields of QPC at any time. For example, for a QP in > state of RTS, modify it from RTR to RTS can change the PSN, which is always > not as expected. > > Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver") > Signed-off-by: Lang Cheng <chenglang@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > Changes since v1: > - Add a fixes line as Jason suggested. > > drivers/infiniband/hw/hns/hns_roce_qp.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) Applied to for-next, thanks Jason