linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Christoph Lameter <cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
Cc: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH for-4.3] IB/ipoib: add module option for auto-creating mcast groups
Date: Tue, 15 Sep 2015 14:24:21 -0400	[thread overview]
Message-ID: <55F86255.9080508@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1509141200020.4192-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

On 09/14/2015 01:03 PM, Christoph Lameter wrote:
> On Fri, 11 Sep 2015, Doug Ledford wrote:
> 
>>> At a minimum, when the socket that did the send closes the send-only
>>> could be de-refed..
>>
>> If we kept a ref count, but we don't.  Tracking this is not a small change.
> 
> We could call ip_mc_join_group() from ipoib_mcast_send() which would join
> it at the socket layer. That layer would do the tracking for us and leave the
> group when the process terminates. The join would be visible the same way
> as if one would have done an explicit setsockopt().

I actually think this is a step in the right direction, but I think we
are talking about a layering violation doing it the way you are
suggesting.  What's more, there are a few difficulties here in that I'm
fairly certain the core networking layer doesn't have the concept of a
send-only join, yet we would need it to have such.  If we had three apps
do send only sends, we would need to track all three of those sockets as
being send only socket joins, and then if someone did a full join, we
would need to automatically upgrade the join, and then if that app with
the full join left, we would need to gracefully downgrade to send only
again.  So, I think it would take work at the core level to get this
right, but I think that's probably the right place to do the work.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

  parent reply	other threads:[~2015-09-15 18:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11  1:21 [PATCH for-4.3] IB/ipoib: add module option for auto-creating mcast groups Doug Ledford
     [not found] ` <980e8b0a82042d7e5801e02bf16fe72a0bde6759.1441934465.git.dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-11 14:40   ` Christoph Lameter
     [not found]     ` <alpine.DEB.2.11.1509110920540.16357-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-11 18:21       ` Jason Gunthorpe
     [not found]         ` <20150911182115.GA546-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-11 19:41           ` Doug Ledford
     [not found]             ` <55F32E7A.3020105-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-14 17:03               ` Christoph Lameter
     [not found]                 ` <alpine.DEB.2.11.1509141200020.4192-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-15 18:24                   ` Doug Ledford [this message]
     [not found]                     ` <55F86255.9080508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-15 18:42                       ` Christoph Lameter
2015-09-15 19:11                       ` Jason Gunthorpe
     [not found]                         ` <20150915191159.GB24173-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-15 23:53                           ` Christoph Lameter
     [not found]                             ` <alpine.DEB.2.11.1509151852530.15731-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-16 15:14                               ` Doug Ledford
     [not found]                                 ` <55F9873B.2080407-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-16 15:38                                   ` Christoph Lameter
2015-09-16 15:21                           ` Doug Ledford
     [not found]                             ` <55F988F1.8000508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-16 15:59                               ` Christoph Lameter
     [not found]                                 ` <alpine.DEB.2.11.1509161058540.22035-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-16 16:26                                   ` Doug Ledford
     [not found]                                     ` <55F9981F.5010605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-16 16:31                                       ` Christoph Lameter
     [not found]                                         ` <alpine.DEB.2.11.1509161129080.22736-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-16 20:13                                           ` Or Gerlitz
     [not found]                                             ` <CAJ3xEMi2SEXWmmLmm2xb_X_BZJY2L3UM1UfsXjFaupHBbi=q8g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-16 20:17                                               ` Christoph Lameter
     [not found]                                                 ` <alpine.DEB.2.11.1509161517110.24175-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-16 20:52                                                   ` Or Gerlitz
     [not found]                                                     ` <CAJ3xEMjVcTYicgNmv0_eSySF_gf-S3pLVY_YCoUk44rVfpYPLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-17  0:48                                                       ` Christoph Lameter
     [not found]                                                         ` <alpine.DEB.2.11.1509161945250.25627-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2015-09-17 10:39                                                           ` Or Gerlitz
2015-09-16 17:03                                   ` Jason Gunthorpe
2015-09-11 18:39   ` Jason Gunthorpe
     [not found]     ` <20150911183931.GB546-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-11 20:09       ` Doug Ledford
     [not found]         ` <55F3350D.6090002-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-11 20:38           ` Jason Gunthorpe
     [not found]             ` <20150911203820.GA19161-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-09-11 21:40               ` Doug Ledford
     [not found]                 ` <55F34A59.50401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-11 22:00                   ` 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=55F86255.9080508@redhat.com \
    --to=dledford-h+wxahxf7alqt0dzr+alfa@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 \
    /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).