All of lore.kernel.org
 help / color / mirror / Atom feed
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>,
	Yotam Kenneth <yotamke-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Shachar Raindel <raindel-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Guy Shapiro <guysh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH v2 07/13] IB/cma: Helper functions to access port space IDRs
Date: Tue, 28 Jul 2015 11:55:09 +0300	[thread overview]
Message-ID: <55B7436D.40003@mellanox.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A901F965-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>

On 28/07/2015 01:48, Hefty, Sean wrote:
>> Add helper functions to access the IDRs by port-space and port number.
>>
>> Pass around the port-space enum in cma.c instead of using pointers to
>> port-space IDRs.
> 
> Why?
> 
>>  drivers/infiniband/core/cma.c | 81 ++++++++++++++++++++++++++++++++------
>> -----
>>  1 file changed, 60 insertions(+), 21 deletions(-)
> 
> This change adds code, and AFAICT makes it less efficient.  What purpose does it serve?
> 

As I wrote before [1], this change is intended to help reuse the code finding
an IDR for a port space, and it is used by patch 9.

As for efficiency, cma_idr, cma_ps_alloc, and cma_ps_remove are completely inlined by my compiler. cma_ps_find does end up adding a function call, but I doubt it would have a significant effect. cma_select_ib_ps and cma_select_inet_ps were already inlined before the patch.

Regards,
Haggai

[1] https://www.mail-archive.com/linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg25496.html
--
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

  parent reply	other threads:[~2015-07-28  8:55 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 [this message]
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=55B7436D.40003@mellanox.com \
    --to=haggaie-vpraknaxozvwk0htik3j/w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=guysh-VPRAkNaXOzVWk0Htik3J/w@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=raindel-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=yotamke-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 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.