From: Shlomo Pongratz <shlomop-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Tzahi Oved <tzahio-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Christoph Lameter <cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH V4 for-next 1/5] IB/core: Add RSS and TSS QP groups - suggesting BOF during OFA conf to further discuss that
Date: Tue, 30 Apr 2013 12:04:25 +0300 [thread overview]
Message-ID: <517F8919.8060108@mellanox.com> (raw)
In-Reply-To: <20130429203653.GA25804-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
On 4/29/2013 11:36 PM, Jason Gunthorpe wrote:
> On Mon, Apr 29, 2013 at 10:52:21PM +0300, Or Gerlitz wrote:
>> On Fri, Apr 26, 2013 at 12:40 AM, Jason Gunthorpe wrote:
>>> But I don't follow why the send QPNs have to be sequential for
>>> IPoIB. It looks like this is being motivated by RSS and RSS QPNs are
>>> just being reused for TSS?
>> Go read "It turns out that there are IPoIB drivers used by some
>> operating-systems
>> and/or Hypervisors in a para-virtualization (PV) scheme which extract the
>> source QPN from the CQ WC associated with an incoming packets in order
>> to.." and what follows in the change-log of patch 4/5
>> http://marc.info/?l=linux-rdma&m=136412901621797&w=2
> This is what I said in the first place, the RFC is premised on the
> src.QPN to be set properly, you can't just mess with it, because stuff
> needs it.
>
> I think you should have split this patch up, there is lots going on
> here.
>
> - Add proper TSS that doesn't change the wire protocol
> - Add fake TSS that does change the wire protocol, and
> properly document those changes so other people can
> follow/implement them
> - Add RSS
>
> And.. 'tss_qpn_mask_sz' seems unnecessarily limiting, using
> WC.srcQPN + ipoib_header.tss_qpn_offset == real QPN
> (ie use a signed offset, not a mask)
> Seems much better than
> Wc.srcQPN & ~((1<<(ipoib_header.tss_qpn_mask_sz >> 12))-1) == real QPN
> (Did I even get that right?)
>
> Specifically it means the requirements for alignment and
> contiguous-ness are gone. This means you can implement it without
> using the QP groups API and it will work immediately with every HCA
> out there. I think if we are going to actually mess with the wire
> protocol this sort of broad applicability is important.
>
> As for the other two questions: seems reasonable to me. Without a
> consensus among HW vendors how to do this it makes sense to move ahead
> *in the kernel* with a minimal API. Userspace is a different question
> of course..
>
> Jason
Hi Jason,
Your suggestion could have been valid if the the IPoIB header was larger.
Please note that the a QPN occupies 3 octets and thus its value lies in
the range of [0..0xFFFFFF].
On the other hand the reserved field in the IPoIB header occupies only 2
octets, so given an arbitrary group of source QPN it may be not possible
to recover the "real QPN".
This is why the "real QPN" should be a power of two and the rest should
have consecutive numbers. And since the number of the TSS QP is
relatively small, that is, in the order of the number of the cores than
masking the lower bits of the "Wc.srcQPN" will recover the "real QPN"
number.
Also by sending only the mask length we don't use the entire reserved
filed but only 4 bits leaving 12 bits to future use.
Best regards,
S.P.
--
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-04-30 9:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 13:21 [PATCH V4 for-next 1/5] IB/core: Add RSS and TSS QP groups - suggesting BOF during OFA conf to further discuss that Or Gerlitz
[not found] ` <CAJZOPZLVyYODJ=z6KDfx0UJtaHpA7nUt2kwadEugpV1LWxhEMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-22 16:46 ` Or Gerlitz
[not found] ` <CAJZOPZKwH66uEukqDSvV+4-z+RhroOB1a0AiWBvdq7D3mso7gQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-23 21:15 ` Or Gerlitz
[not found] ` <CAJZOPZL1eminwg+MVAC+8y4Pg3Nff=aeMN9ic57SB3cRAg8Hnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-24 2:24 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A823736FD1E64F-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-04-25 20:12 ` Jason Gunthorpe
[not found] ` <20130425201255.GB31863-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-04-25 20:26 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A823736FD1EF16-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-04-25 20:43 ` Jason Gunthorpe
[not found] ` <20130425204357.GD31863-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-04-25 20:56 ` Or Gerlitz
[not found] ` <CAJZOPZK8hcfm2OCnsJkhCiRNxOFXOB0xc9i7tmB4qEnkXrXC0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-25 21:40 ` Jason Gunthorpe
[not found] ` <20130425214058.GF31863-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-04-29 19:49 ` Or Gerlitz
2013-04-29 19:52 ` Or Gerlitz
[not found] ` <CAJZOPZLMtoxYyQO24F5_2Gr7ye0AFPQ5aZHp4dZFu1LQFK_cYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-29 20:36 ` Jason Gunthorpe
[not found] ` <20130429203653.GA25804-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-04-30 9:04 ` Shlomo Pongratz [this message]
[not found] ` <517F8919.8060108-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-04-30 16:28 ` Jason Gunthorpe
2013-04-30 20:14 ` Or Gerlitz
2013-04-29 19:56 ` Or Gerlitz
2013-04-30 20:09 ` Or Gerlitz
[not found] ` <CAJZOPZL9Zrd+5z+pN8UNPwYFu5fg2x5=3hyNDO_EekA+4QQQNA@mail.gmail.com>
[not found] ` <CAJZOPZL9Zrd+5z+pN8UNPwYFu5fg2x5=3hyNDO_EekA+4QQQNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-30 20:27 ` 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=517F8919.8060108@mellanox.com \
--to=shlomop-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=tzahio-VPRAkNaXOzVWk0Htik3J/w@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