IB/mlx5: Properly adjust rate limit on QP state transitions
authorBodong Wang <bodong@mellanox.com>
Thu, 1 Dec 2016 11:43:16 +0000 (13:43 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:51 +0000 (13:39 -0500)
commit7d29f349a4b9dcf5bc9dcc05630d6a7f6b6b3ccd
tree9c180abecd253ecbb93f16abe19a89dc64935356
parent189aba99e70030cfb56bd8f199bc5b077a1bc6ff
IB/mlx5: Properly adjust rate limit on QP state transitions

- Add MODIFY_QP_EX CMD to extend modify_qp.
- Rate limit will be updated in the following state transactions: RTR2RTS,
  RTS2RTS. The limit will be removed when SQ is in RST and ERR state.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c