]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Clear old rate limit when closing QP
authorRafi Wiener <rafiw@mellanox.com>
Wed, 2 Oct 2019 12:02:43 +0000 (15:02 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Oct 2019 20:07:25 +0000 (16:07 -0400)
commitbee69e546473b1a64d490c2e0b61b6fb1ee8c2a0
treee19deb14792224aed8eb6c673cd227cb34018233
parent08e73b34fa1169022929f0b65d9360a7b614b829
RDMA/mlx5: Clear old rate limit when closing QP

Before QP is closed it changes to ERROR state, when this happens
the QP was left with old rate limit that was already removed from
the table.

Fixes: f867ab3f5827 ("IB/mlx5: Properly adjust rate limit on QP state transitions")
Signed-off-by: Rafi Wiener <rafiw@mellanox.com>
Signed-off-by: Oleg Kuporosov <olegk@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191002120243.16971-1-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c