From: Haggai Eran <haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: "Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Liran Liss <liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Subject: Re: [PATCH v2 05/13] IB/cm: Share listening CM IDs
Date: Tue, 28 Jul 2015 11:25:42 +0300 [thread overview]
Message-ID: <55B73C86.30608@mellanox.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A901F86B-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
On 27/07/2015 22:04, Hefty, Sean wrote:
>> +struct ib_cm_id *ib_cm_insert_listen(struct ib_device *device,
>> > + ib_cm_handler cm_handler,
>> > + __be64 service_id, __be64 service_mask)
>> > +{
>> > + struct cm_id_private *cm_id_priv;
>> > + struct ib_cm_id *cm_id;
>> > + unsigned long flags;
>> > + int err = 0;
>> > +
>> > + /* Create an ID in advance, since the creation may sleep */
>> > + cm_id = ib_create_cm_id(device, cm_handler, NULL);
>> > + if (IS_ERR(cm_id))
>> > + return cm_id;
>> > +
>> > + spin_lock_irqsave(&cm.lock, flags);
>> > +
>> > + if (service_id == IB_CM_ASSIGN_SERVICE_ID)
>> > + goto new_id;
>> > +
>> > + /* Find an existing ID */
>> > + cm_id_priv = cm_find_listen(device, service_id, NULL);
>> > + if (cm_id_priv) {
> The service_mask is being ignored through this code path.
Thanks.
I think it would be better just to remove the service_mask parameter
from this function, right? rdma_cm makes no use of the service mask.
Haggai
--
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:[~2015-07-28 8:25 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-26 15:33 [PATCH v2 00/13] Demux IB CM requests in the rdma_cm module Haggai Eran
[not found] ` <1437924832-18327-1-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-26 15:33 ` [PATCH v2 01/13] IB/core: lock client data with lists_rwsem Haggai Eran
[not found] ` <1437924832-18327-2-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-27 17:44 ` Jason Gunthorpe
2015-07-26 15:33 ` [PATCH v2 02/13] IB/core: Find the network device matching connection parameters Haggai Eran
[not found] ` <1437924832-18327-3-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-27 17:45 ` Jason Gunthorpe
[not found] ` <20150727174522.GF18348-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-07-28 8:16 ` Haggai Eran
2015-07-26 15:33 ` [PATCH v2 03/13] IB/ipoib: Return IPoIB devices " Haggai Eran
2015-07-26 15:33 ` [PATCH v2 04/13] IB/cm: Expose service ID in request events Haggai Eran
2015-07-26 15:33 ` [PATCH v2 05/13] IB/cm: Share listening CM IDs Haggai Eran
[not found] ` <1437924832-18327-6-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-27 19:04 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A901F86B-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-07-28 8:25 ` Haggai Eran [this message]
[not found] ` <55B73C86.30608-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-28 17:05 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A901FE5D-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-07-29 6:34 ` Haggai Eran
2015-07-26 15:33 ` [PATCH v2 06/13] IB/cma: Refactor RDMA IP CM private-data parsing code Haggai Eran
2015-07-26 15:33 ` [PATCH v2 07/13] IB/cma: Helper functions to access port space IDRs Haggai Eran
[not found] ` <1437924832-18327-8-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-27 22:48 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A901F965-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-07-28 8:55 ` Haggai Eran
2015-07-26 15:33 ` [PATCH v2 08/13] IB/cm: Expose BTH P_Key in CM and SIDR request events Haggai Eran
2015-07-26 15:33 ` [PATCH v2 09/13] IB/cma: Add net_dev and private data checks to RDMA CM Haggai Eran
[not found] ` <1437924832-18327-10-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-07-27 23:07 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373A901F99B-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-07-28 8:12 ` Haggai Eran
2015-07-26 15:33 ` [PATCH v2 10/13] IB/cma: Validate routing of incoming requests Haggai Eran
2015-07-26 15:33 ` [PATCH v2 11/13] IB/cma: Use found net_dev for passive connections Haggai Eran
2015-07-26 15:33 ` [PATCH v2 12/13] IB/cma: Share ib_cm_ids between rdma_cm_ids Haggai Eran
2015-07-26 15:33 ` [PATCH v2 13/13] IB/cm: Remove compare_data checks Haggai Eran
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=55B73C86.30608@mellanox.com \
--to=haggaie-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=liranl-VPRAkNaXOzVWk0Htik3J/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