Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Jiri Pirko <jiri@resnulli.us>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-rdma@vger.kernel.org, leon@kernel.org, mrgolin@amazon.com,
	 sfual@cse.ust.hk
Subject: Re: [PATCH rdma-next 4/6] RDMA/uverbs: Add ioctl method for CQ resize
Date: Mon, 15 Jun 2026 10:38:44 +0200	[thread overview]
Message-ID: <ai-6BtrZSqwN28Lf@FV6GYCPJ69> (raw)
In-Reply-To: <20260612130159.GJ1066031@ziepe.ca>

Fri, Jun 12, 2026 at 03:01:59PM +0200, jgg@ziepe.ca wrote:
>On Thu, Jun 11, 2026 at 05:12:27PM +0200, Jiri Pirko wrote:
>> +static int UVERBS_HANDLER(UVERBS_METHOD_CQ_RESIZE)(
>> +	struct uverbs_attr_bundle *attrs)
>> +{
>> +	struct ib_cq *cq =
>> +		uverbs_attr_get_obj(attrs, UVERBS_ATTR_RESIZE_CQ_HANDLE);
>> +	u32 cqe;
>> +	int ret;
>> +
>> +	if (IS_ERR(cq))
>> +		return PTR_ERR(cq);
>
>I think this is impossible?
>
>> +DECLARE_UVERBS_NAMED_METHOD(
>> +	UVERBS_METHOD_CQ_RESIZE,
>> +	UVERBS_ATTR_IDR(UVERBS_ATTR_RESIZE_CQ_HANDLE,
>> +			UVERBS_OBJECT_CQ,
>> +			UVERBS_ACCESS_READ,
>> +			UA_MANDATORY),
>
>Because of UA_MANDATORY?

Correct, I missed that. Will send v2.

>
>Jason

  reply	other threads:[~2026-06-15  8:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-11 15:12 [PATCH rdma-next 0/6] RDMA: add per-attribute UMEM for SRQ create and CQ resize Jiri Pirko
2026-06-11 15:12 ` [PATCH rdma-next 1/6] RDMA/uverbs: Add SRQ buffer UMEM attribute Jiri Pirko
2026-06-11 15:12 ` [PATCH rdma-next 2/6] RDMA/mlx5: Use UMEM attribute for SRQ buffer in create_srq Jiri Pirko
2026-06-11 15:12 ` [PATCH rdma-next 3/6] RDMA/mlx5: Use UMEM attribute for SRQ doorbell record Jiri Pirko
2026-06-11 15:12 ` [PATCH rdma-next 4/6] RDMA/uverbs: Add ioctl method for CQ resize Jiri Pirko
2026-06-12 13:01   ` Jason Gunthorpe
2026-06-15  8:38     ` Jiri Pirko [this message]
2026-06-11 15:12 ` [PATCH rdma-next 5/6] RDMA/uverbs: Add CQ resize buffer UMEM attribute Jiri Pirko
2026-06-11 15:12 ` [PATCH rdma-next 6/6] RDMA/mlx5: Use UMEM attribute for CQ resize buffer Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ai-6BtrZSqwN28Lf@FV6GYCPJ69 \
    --to=jiri@resnulli.us \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mrgolin@amazon.com \
    --cc=sfual@cse.ust.hk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox