RDMA/mlx5: Allow SQ modification
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 16 Jul 2020 10:54:16 +0000 (13:54 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Jul 2020 18:49:19 +0000 (15:49 -0300)
commitc94e272b57abb0cade9addcafc93ac1f566305cf
treeb73b3082a167ed3b91e5c3cced5dc49347923741
parent8e7eafb816ab7e5047b74cb8eb1db2f8f14f7d7a
RDMA/mlx5: Allow SQ modification

Currently the SQ is set to a ready state when the RAW QP is modified to
INIT.  When the TIS is modified, e.g. to change the lag_tx_affinity, then
SQs which are already in the ready state will not be affected.

Open a window to modify the SQ behavior by setting the SQ as ready only
when QP was modified to RTS.

Link: https://lore.kernel.org/r/20200716105416.1423826-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c