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 09/13] IB/cma: Add net_dev and private data checks to RDMA CM
Date: Tue, 28 Jul 2015 11:12:22 +0300 [thread overview]
Message-ID: <55B73966.8030103@mellanox.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A901F99B-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
On 28/07/2015 02:07, Hefty, Sean wrote:
>> @@ -1040,6 +1040,181 @@ static int cma_save_net_info(struct sockaddr
>> *src_addr,
>> return cma_save_ip_info(src_addr, dst_addr, ib_event, service_id);
>> }
>>
>> +struct cma_req_info {
>> + struct ib_device *device;
>> + int port;
>> + const union ib_gid *local_gid;
>
> The use of a pointer to some gid inside some other structure looks questionable. There's no reference count held on another structure. We would be better off copying the GID or setting an index into the device GID table.
Okay, I'll copy the GID to the struct.
>
>> + __be64 service_id;
>> + u16 pkey;
>> +};
>
> Please relocate to the top of the source file to group it with other structure definitions.
Sure.
Thanks,
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:12 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
[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 [this message]
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=55B73966.8030103@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