From: Gal Pressman <gal.pressman@linux.dev>
To: Michael Margolin <mrgolin@amazon.com>,
jgg@nvidia.com, leon@kernel.org, linux-rdma@vger.kernel.org
Cc: sleybo@amazon.com, matua@amazon.com, Yonatan Nachum <ynachum@amazon.com>
Subject: Re: [PATCH for-next] RDMA/efa: Report device node description
Date: Wed, 2 Dec 2026 19:11:52 +0200 [thread overview]
Message-ID: <2b274930-4472-4cfd-974b-515d54957fa0@linux.dev> (raw)
In-Reply-To: <20261202164210.4904-1-mrgolin@amazon.com>
On 02/12/2026 18:42, Michael Margolin wrote:
> +int efa_com_get_node_desc(struct efa_com_dev *edev,
> + struct efa_com_get_node_desc_result *result)
> +{
> + struct efa_admin_get_feature_resp resp;
> + struct efa_admin_feature_node_desc *nd;
> + u32 buf_size = sizeof(*nd);
> + dma_addr_t nd_dma;
> + int err;
> +
> + BUILD_BUG_ON(sizeof(nd->node_desc) > sizeof(result->node_desc));
> +
> + nd = dma_alloc_coherent(edev->dmadev, buf_size, &nd_dma, GFP_KERNEL);
> + if (!nd)
> + return -ENOMEM;
> +
> + err = efa_com_get_feature_ex(edev, &resp, EFA_ADMIN_NODE_DESC, nd_dma,
> + buf_size);
Surprising it's the first usage of the control buffer and it actually
works. Is it needed because there's no room in the command response?
prev parent reply other threads:[~2026-12-02 17:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 16:42 [PATCH for-next] RDMA/efa: Report device node description Michael Margolin
2026-12-02 16:45 ` sashiko-bot
2026-12-02 17:11 ` Gal Pressman [this message]
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=2b274930-4472-4cfd-974b-515d54957fa0@linux.dev \
--to=gal.pressman@linux.dev \
--cc=jgg@nvidia.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=matua@amazon.com \
--cc=mrgolin@amazon.com \
--cc=sleybo@amazon.com \
--cc=ynachum@amazon.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.