On Thu, 13 Mar 2025 16:20:17 +0200, Leon Romanovsky wrote: > The ib_post_receive_mads() function handles posting receive work > requests (WRs) to MAD QPs and is called in two cases: > 1) When a MAD port is opened. > 2) When a receive WQE is consumed upon receiving a new MAD. > > Whereas, if MADs arrive during the port open phase, a race condition > might cause an extra WR to be posted, exceeding the QP’s capacity. > This leads to failures such as: > infiniband mlx5_0: ib_post_recv failed: -12 > infiniband mlx5_0: Couldn't post receive WRs > infiniband mlx5_0: Couldn't start port > infiniband mlx5_0: Couldn't open port 1 > > [...] Applied, thanks! [1/1] IB/mad: Check available slots before posting receive WRs https://git.kernel.org/rdma/rdma/c/37826f0a8c2f6b Best regards, -- Leon Romanovsky <leon@xxxxxxxxxx>