From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Add new verb: uv_query_port_max_datagram()
Date: Mon, 19 Aug 2013 14:19:04 -0600 [thread overview]
Message-ID: <20130819201904.GA5121@obsidianresearch.com> (raw)
In-Reply-To: <1376942704-25270-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
On Mon, Aug 19, 2013 at 01:05:04PM -0700, Jeff Squyres wrote:
> +int uv_cmd_query_port_max_datagram(struct ibv_context *context, uint8_t port_num,
> + uint32_t *max_datagram,
> + struct uv_query_port_max_datagram *cmd,
> + size_t cmd_size)
> +{
> + struct uv_query_port_max_datagram_resp resp;
> +
> + if (abi_ver < 7)
> + return -ENOSYS;
What about doing query port in this case and returning that value,
decoded to an enum? Otherwise apps have to include that logic anyhow.
I'm assuming the kernel will do basically the same?
Bascially, the only failure for this call should be due to a bad port
number..
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-08-19 20:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 20:05 [PATCH] Add new verb: uv_query_port_max_datagram() Jeff Squyres
[not found] ` <1376942704-25270-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2013-08-19 20:19 ` Jason Gunthorpe [this message]
[not found] ` <20130819201904.GA5121-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-08-19 20:24 ` [PATCH libibverbs] " Jeff Squyres (jsquyres)
2013-08-19 21:18 ` [PATCH] " Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237388CA6D34-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-08-19 22:00 ` Jeff Squyres (jsquyres)
[not found] ` <EF66BBEB19BADC41AC8CCF5F684F07FC4F80A810-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
2013-08-19 22:07 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237388CA6D6B-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-08-19 22:23 ` Jeff Squyres (jsquyres)
2013-08-19 22:36 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237388CA6D9F-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-08-20 0:11 ` Jeff Squyres (jsquyres)
[not found] ` <EF66BBEB19BADC41AC8CCF5F684F07FC4F80AF3E-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
2013-08-20 0:59 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237388CA6DF1-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-08-20 13:41 ` Jeff Squyres (jsquyres)
[not found] ` <EF66BBEB19BADC41AC8CCF5F684F07FC4F80DB8E-nsZYYkk5h5QQ2GdVW7+PtKBKnGwkPULj@public.gmane.org>
2013-08-20 15:11 ` Hefty, Sean
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=20130819201904.GA5121@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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.