From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"Amrani,
Ram" <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Cc: "Elior,
Ariel" <Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
"Kalderon,
Michal" <Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 1/2] IB/core: add the function ib_mtu_int_to_enum
Date: Tue, 24 Jan 2017 15:09:20 -0500 [thread overview]
Message-ID: <1485288560.43764.59.camel@redhat.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373AB0CE998-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
On Wed, 2017-01-04 at 17:40 +0000, Hefty, Sean wrote:
> >
> > You'll still be required to convert it to/from enum when
> > building/parsing CM messages, for example.
> > Also, why should it be an int if only specific values are allowed?
>
> The enum values are IB specification specific, and are incomplete
> (note the lack of Ethernet mtu sizes). Let the IB centric code deal
> with the conversion, and let the rest of the API be reasonable. The
> IB CM uses the mtu value in the path record, which is fine. Then
> maybe someday userspace can get access to the real mtu sizes as
> well...
Hi Sean,
While I don't disagree with your thoughts on the API change, the
original patch as it stands is a reasonable cleanup patch. I'm not
going to condition one on the other as a result.
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2017-01-24 20:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-26 6:40 [PATCH 0/2] IB/core: introduce ib_mtu_int_to_enum Ram Amrani
[not found] ` <1482734458-32131-1-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-26 6:40 ` [PATCH 1/2] IB/core: add the function ib_mtu_int_to_enum Ram Amrani
[not found] ` <1482734458-32131-2-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-27 7:34 ` Leon Romanovsky
2017-01-03 16:24 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB0CE4E4-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-01-04 9:17 ` Amrani, Ram
[not found] ` <SN1PR07MB2207C1F332D441FECD65C3F8F8610-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-04 17:40 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB0CE998-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-01-08 10:36 ` Amrani, Ram
2017-01-24 20:09 ` Doug Ledford [this message]
[not found] ` <1485288560.43764.59.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-01-24 20:12 ` Hefty, Sean
2016-12-26 6:40 ` [PATCH 2/2] qedr: fix MTU returned from QP query Ram Amrani
2017-01-24 20:10 ` [PATCH 0/2] IB/core: introduce ib_mtu_int_to_enum Doug Ledford
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=1485288560.43764.59.camel@redhat.com \
--to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).