From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
To: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
ofw_list <ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org>,
Hal Rosenstock
<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Yevgeny Kliteynik
<kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>,
Eli Dorfman <elid-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Subject: Re: ib_types.h moving
Date: Thu, 1 Oct 2009 17:38:41 -0700 [thread overview]
Message-ID: <20091001173841.9ef6bca2.weiny2@llnl.gov> (raw)
In-Reply-To: <376DB0F1C4874D9388729D1367F54C23-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
On Thu, 1 Oct 2009 14:47:33 -0700
"Sean Hefty" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> >So far I can only think of 2 "correct" options.
> >
> > 1) Make ib_types.h into a new library and have libibverbs, libibmad,
> > opensm, and MPI's use the constants and helper functions there. This of
> > course would force some dependencies.
> >
> > 2) split up and spread ib_types.h around to appropriate places. This will
> > likely include libibmad and libibverbs (others?) I don't think libibumad
> > is appropriate really. At first, I suggested this mainly out of
> > convenience because WinOF uses it. However, I don't think it is
> > architecturally correct. libibumad looks to have a sound interface and
> > should not be messed with.
>
> The only issue that was pointed out was that the IB ACM duplicated some network
> structure definitions (the SA MAD format, McMemberRecord, PathRecord). It seems
> perfectly natural to me to have the library that allows you to send and receive
> MADs to provide these definitions, especially considering how fundamental these
> specific attributes are to using IB. Even though umad_send and umad_recv are
> both defined to take a void * input buffer, they expect a specific format to
> that buffer.
Combine libibmad into libibumad? Or just the core structure definitions? I
will admit that accepting void * seems wrong when you know it is
supposed to be a mad packet. In fact both umad_send and umad_recv imediately
cast the void * to struct ib_user_mad *! Why not specify that in the
parameter type?
>
> libibverbs defines host structure definitions for McMemberRecord and PathRecord,
> but doesn't use them. This allows the rdma_cm and ib_cm to remain independent,
> but use the same definition.
:-( I missed those. Is there a reason they must remain independent? (I
assume you mean independent of the mad libs?)
>
> IB ACM is coded to libibumad directly, mainly because I didn't see any benefit
> to coding to a higher level MAD interface that was more complex to use. Trying
> to keep the defines in a higher level library, which is what we have now, either
> results in duplicating them or forcing a dependency where there wouldn't be any.
I understand the desire to avoid using libibmad. Perhaps you are correct that
there are some things which are "core" MAD functionality, structure
definitions for example, which should be at a lower level. However, I think
it is still appropriate to put some things from ib_types into libibverbs and
to expect people to use those definitions when required.
>
> And to be clear, I'm only referring to definitions in ib_types.h (and some in
> mad.h), and not any actual functionality.
>
<sigh> yes this discussion has digressed. But I don't think we should dive
into breaking up (or moving) ib_types just to move things around. I think
Sasha is right we need to have a plan for where things _should_ end up. As I
look for homes for all the items of ib_types I find that it is not just one
place. :-/
Ira
--
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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:[~2009-10-02 0:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <EED935897ACB4DC784DFAB4184A5DC6F@amr.corp.intel.com>
[not found] ` <FCF6CB1AB515463BAB014EB7BB084FDA@amr.corp.intel.com>
[not found] ` <20090917101804.12e9e5ce.weiny2@llnl.gov>
[not found] ` <FD141AAD0F10420B9D0478DB68C9DEDA@amr.corp.intel.com>
[not found] ` <20090917132050.041b077d.weiny2@llnl.gov>
[not found] ` <20090917132050.041b077d.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-09-25 13:09 ` ib_types.h moving [was: Re: [ofa-general] [RFC] 3/5: IB ACM: libibacm] Sasha Khapyorsky
2009-09-25 17:19 ` Sean Hefty
2009-10-01 1:31 ` Ira Weiny
[not found] ` <20090930183126.0011af7c.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-10-01 2:57 ` Jason Gunthorpe
[not found] ` <20091001025752.GA22310-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2009-10-01 22:50 ` Ira Weiny
[not found] ` <20091001155007.5bdf73f1.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-10-01 22:56 ` Sean Hefty
2009-10-01 23:39 ` Jason Gunthorpe
[not found] ` <20091001233915.GC5191-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2009-10-02 17:45 ` Ira Weiny
[not found] ` <20091002104538.b1362887.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-10-02 17:58 ` Hal Rosenstock
2009-10-01 21:47 ` ib_types.h moving Sean Hefty
[not found] ` <376DB0F1C4874D9388729D1367F54C23-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-02 0:38 ` Ira Weiny [this message]
[not found] ` <20091001173841.9ef6bca2.weiny2-i2BcT+NCU+M@public.gmane.org>
2009-10-02 16:56 ` Sean Hefty
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=20091001173841.9ef6bca2.weiny2@llnl.gov \
--to=weiny2-i2bct+ncu+m@public.gmane.org \
--cc=elid-smomgflXvOZWk0Htik3J/w@public.gmane.org \
--cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org \
--cc=sashak-smomgflXvOZWk0Htik3J/w@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