From: Leon Romanovsky <leon@kernel.org>
To: Dennis Dalessandro <dennis.dalessandro@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>,
Nathan Chancellor <natechancellor@gmail.com>,
Jason Gunthorpe <jgg@ziepe.ca>,
dledford@redhat.com, linux-rdma@vger.kernel.org,
Mike Marciniszyn <mike.marciniszyn@intel.com>,
Sadanand Warrier <sadanand.warrier@intel.com>,
Kaike Wan <kaike.wan@intel.com>
Subject: Re: [PATCH v3 for-next 07/16] IB/ipoib: Increase ipoib Datagram mode MTU's upper limit
Date: Wed, 17 Jun 2020 07:35:14 +0300 [thread overview]
Message-ID: <20200617043514.GD2383158@unreal> (raw)
In-Reply-To: <a27d361e-9122-1825-72e7-6a4d2a0627ec@intel.com>
On Tue, Jun 16, 2020 at 03:27:34PM -0400, Dennis Dalessandro wrote:
> On 6/16/2020 3:21 PM, Ira Weiny wrote:
> > On Tue, Jun 16, 2020 at 03:14:51PM -0400, Dennis Dalessandro wrote:
> > > On 6/16/2020 2:25 AM, Leon Romanovsky wrote:
> > > > On Mon, Jun 15, 2020 at 05:56:50PM -0700, Nathan Chancellor wrote:
> > > > > On Mon, Jun 01, 2020 at 10:57:22AM -0300, Jason Gunthorpe wrote:
> > > > > > On Mon, Jun 01, 2020 at 09:48:47AM -0400, Dennis Dalessandro wrote:
> > > > > >
> > > > > > > They should probably all be in "enum ib_mtu". Jason any issues with us donig
> > > > > > > that? I can't for certain recall the real reason they were kept separate in
> > > > > > > the first place.
> > > > > >
> > > > > > It is probably OK
> > > > > >
> > > > > > Jason
> > > > >
> > > > > I don't mind taking a wack at this if you guys are too busy (I'm rather
> > > > > tired of seeing the warning across all of my builds). However, I am
> > > > > wondering how far should this be unwound? Should 'enum opa_mtu' be
> > > > > collapsed into 'enum ib_mtu' and then all of the opa conversion
> > > > > functions be eliminated in favor of the ib ones? It looks like
> > > > > OPA_MTU_8192 and OPA_MTU_10240 are used in a few places within
> > > > > drivers/infiniband/hw/hfi1, should all of those instances be converted
> > > > > over to IB_MTU_* and the defines at the top of
> > > > > drivers/infiniband/hw/hfi1/hfi.h be eliminated?
> > >
> > > My opinion is yes.
> > >
> > > > We rather keep separation due to logic separation.
> > >
> > > To be fair, "you" rather. Not we. I'd like some others to weigh in here.
> > > Increasing the available MTUs an an enum just makes sense. Why does it
> > > matter if IB doesn't need them right now. Maybe someday.
> > >
> > > > While ib_* defines come from IBTA and interoperable across different
> > > > devices and vendors, opa_* definitions are Intel proprietary ones used
> > > > for the product that was canceled.
> > >
> > > But does it hurt to have more potentially available? Can you please explain
> > > the technical reason here?
> >
> > The problem is that the IBTA _may_ define those enums to mean something
> > different in the future. Hopefully, the Intel representatives within the IBTA
> > would try to make them compatible but I don't know that 10K 'fits' with the
> > IBTA's future. 8K seems like a reasonable extension for the IBTA but again we
> > as Linux developers can't say that will happen for sure. We just don't control
> > what the IBTA does in that regard.
> >
>
> I guess I buy that. However I believe I have seen it claimed in the past
> that we aren't the IBTA, we are the Linux kernel and can do what we think
> makes sense. But to be honest I don't feel strongly, and I'm not gonna argue
> strongly one way or the other.
Thanks Ira for the explanation.
Regarding "we are the Linux kernel and can do what we think makes sense"
sentence, it is correct for SW interfaces and implementation only.
Everything that touches already defined HW interfaces and wire protocol
should follow the spec or should be separated.
Thanks
>
> -Denny
>
next prev parent reply other threads:[~2020-06-17 4:35 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-11 16:05 [PATCH v3 for-next 00/16] New hfi1 feature: Accelerated IP Dennis Dalessandro
2020-05-11 16:05 ` [PATCH v3 for-next 01/16] IB/hfi1: Add accelerated IP capability bit Dennis Dalessandro
2020-05-11 16:05 ` [PATCH v3 for-next 02/16] IB/hfi1: Add functions to transmit datagram ipoib packets Dennis Dalessandro
2020-05-11 16:05 ` [PATCH v3 for-next 03/16] IB/hfi1: Add the transmit side of a datagram ipoib RDMA netdev Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 04/16] IB/hfi1: Remove module parameter for KDETH qpns Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 05/16] IB/{rdmavt, hfi1}: Implement creation of accelerated UD QPs Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 06/16] IB/hfi1: RSM rules for AIP Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 07/16] IB/ipoib: Increase ipoib Datagram mode MTU's upper limit Dennis Dalessandro
2020-05-27 4:03 ` Nathan Chancellor
2020-06-01 13:48 ` Dennis Dalessandro
2020-06-01 13:57 ` Jason Gunthorpe
2020-06-16 0:56 ` Nathan Chancellor
2020-06-16 6:25 ` Leon Romanovsky
2020-06-16 18:42 ` Nathan Chancellor
2020-06-16 19:17 ` Ira Weiny
2020-06-16 19:14 ` Dennis Dalessandro
2020-06-16 19:21 ` Ira Weiny
2020-06-16 19:27 ` Dennis Dalessandro
2020-06-17 4:35 ` Leon Romanovsky [this message]
2020-05-11 16:06 ` [PATCH v3 for-next 08/16] IB/hfi1: Rename num_vnic_contexts as num_netdev_contexts Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 09/16] IB/hfi1: Add functions to receive accelerated ipoib packets Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 10/16] IB/hfi1: Add interrupt handler functions for accelerated ipoib Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 11/16] IB/hfi1: Add rx functions for dummy netdev Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 12/16] IB/hfi1: Activate the " Dennis Dalessandro
2020-05-11 16:06 ` [PATCH v3 for-next 13/16] IB/{hfi1, ipoib, rdma}: Broadcast ping sent packets which exceeded mtu size Dennis Dalessandro
2020-05-11 16:07 ` [PATCH v3 for-next 14/16] IB/hfi1: Add packet histogram trace event Dennis Dalessandro
2020-05-11 16:07 ` [PATCH v3 for-next 15/16] IB/ipoib: Add capability to switch between datagram and connected mode Dennis Dalessandro
2020-05-11 16:07 ` [PATCH v3 for-next 16/16] IB/hfi1: Enable the transmit side of the datagram ipoib netdev Dennis Dalessandro
2020-05-21 19:55 ` [PATCH v3 for-next 00/16] New hfi1 feature: Accelerated IP Jason Gunthorpe
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=20200617043514.GD2383158@unreal \
--to=leon@kernel.org \
--cc=dennis.dalessandro@intel.com \
--cc=dledford@redhat.com \
--cc=ira.weiny@intel.com \
--cc=jgg@ziepe.ca \
--cc=kaike.wan@intel.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mike.marciniszyn@intel.com \
--cc=natechancellor@gmail.com \
--cc=sadanand.warrier@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox