From: Bart Van Assche <Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
To: "swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org"
<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
"leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: "faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
<faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"leonro-Nfu5REtnQAJWk0Htik3J/w@public.gmane.org"
<leonro-Nfu5REtnQAJWk0Htik3J/w@public.gmane.org>,
"mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
<mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
<shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org"
<dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH rdma-next] Revert "IB/core: Add flow control to the portmapper netlink calls"
Date: Wed, 31 May 2017 20:06:35 +0000 [thread overview]
Message-ID: <1496261194.2608.13.camel@sandisk.com> (raw)
In-Reply-To: <03f901d2da3c$7e0f23a0$7a2d6ae0$@opengridcomputing.com>
On Wed, 2017-05-31 at 13:34 -0500, Steve Wise wrote:
> > > I would hate to introduce an iwarp regression vs solving your issue w/o
> > > reverting. If I recall, the flow control is need so as to not drop messages
> > > flowing from the kernel to the iwpmd. I'm not sure how that could be fixed
> > > in the user daemon?
> >
> > Assume that netlink is unreliable and set socket timeout.
>
> It seems that netlink is becoming more and more a message API between kernel and
> user. Wouldn't everyone benefit from make it reliable? And I think we can
> certainly provide blocking/reliable mode as an option to be used only by those
> subsystems that require it.
Sorry Steve but I'm not sure that's a good idea. Netlink uses fixed size
buffers for sending messages to user space. Making netlink reliable means
making the kernel wait if the buffer is full. That would introduce the
possibility of a kernel deadlock if the user space application hangs. I
don't think we want that.
BTW, are you aware netlink reports buffer overflows to user space through
the ENOBUFS error code? Any user space software that reads from a netlink
socket should check the error code returned by recv() and resynchronize the
state if recv() fails with ENOBUFS. I'm writing here "should" because there
are several examples of user space software that doesn't do this correctly.
Bart.--
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:[~2017-05-31 20:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-29 8:24 [PATCH rdma-next] Revert "IB/core: Add flow control to the portmapper netlink calls" Leon Romanovsky
[not found] ` <20170529082423.1180-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-05-30 21:24 ` Shiraz Saleem
[not found] ` <20170530212431.GA21008-GOXS9JX10wfOxmVO0tvppfooFf0ArEBIu+b9c/7xato@public.gmane.org>
2017-05-31 4:04 ` Leon Romanovsky
[not found] ` <20170531040437.GE5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-31 17:42 ` Shiraz Saleem
[not found] ` <20170531174245.GA16304-GOXS9JX10wfOxmVO0tvppfooFf0ArEBIu+b9c/7xato@public.gmane.org>
2017-05-31 17:46 ` Steve Wise
2017-05-31 18:20 ` Leon Romanovsky
[not found] ` <20170531182050.GL5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-31 18:34 ` Steve Wise
2017-05-31 20:06 ` Bart Van Assche [this message]
2017-05-31 20:10 ` Bart Van Assche
[not found] ` <1496261429.2608.15.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-06-02 16:28 ` Shiraz Saleem
[not found] ` <20170602162849.GA28660-GOXS9JX10wfOxmVO0tvppfooFf0ArEBIu+b9c/7xato@public.gmane.org>
2017-06-03 13:02 ` Bart Van Assche
2017-06-04 5:36 ` Leon Romanovsky
[not found] ` <20170604053635.GD6868-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-05 2:23 ` Chien Tin Tung
[not found] ` <20170605022313.GB18172-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-05 4:00 ` Leon Romanovsky
[not found] ` <20170605040030.GG6868-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-05 4:20 ` Chien Tin Tung
[not found] ` <20170605042007.GA19068-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-05 4:50 ` Chien Tin Tung
[not found] ` <20170605045043.GA17148-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-05 6:03 ` Leon Romanovsky
[not found] ` <20170605060318.GH6868-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-05 15:08 ` Doug Ledford
[not found] ` <1496675296.7171.179.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-06-06 18:17 ` Chien Tin Tung
2017-06-05 14:30 ` Doug Ledford
2017-06-05 14:29 ` Doug Ledford
2017-06-05 14:27 ` Doug Ledford
2017-06-01 4:10 ` Leon Romanovsky
[not found] ` <20170601041022.GM5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-02 16:21 ` Chien Tin Tung
[not found] ` <20170602162103.GA12468-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-04 5:31 ` Leon Romanovsky
[not found] ` <20170604053123.GC6868-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-05 2:21 ` Chien Tin Tung
2017-06-05 14:55 ` Doug Ledford
[not found] ` <1496674541.7171.168.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-06-05 17:32 ` Leon Romanovsky
-- strict thread matches above, loose matches on Subject: below --
2017-05-29 8:26 Leon Romanovsky
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=1496261194.2608.13.camel@sandisk.com \
--to=bart.vanassche-xdaiopvojttbdgjk7y7tuq@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=leonro-Nfu5REtnQAJWk0Htik3J/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.