Re: [PATCH v3] RDMA/srpt: Clamp the CQ size request to max_cqe

From: Bart Van Assche

Date: Wed Sep 09 2026 - 14:24:24 EST


On 9/6/26 11:32 PM, Leon Romanovsky wrote:
All these Sashiko reports suggest that sq_size is being changed in the wrong
place. Can you check for the correct value in srpt_tpg_attrib_srp_sq_size_store()?

Bart, can we simply decrease MAX_SRPT_SRQ_SIZE by, say, 100?

Sure, that's fine with me.

Note: the default in the ib_srpt driver is not to use SRQ. SQR is only used if enabled explicitly via configfs. I'm not sure anyone is still
using the SRQ support in the ib_srpt driver.

Bart.