Thread (1 message) 1 message, 1 author, 2015-06-21

Re: [PATCH 07/11] IB/cma: Helper functions to access port space IDRs

From: Haggai Eran <hidden>
Date: 2015-06-21 12:51:45
Also in: linux-rdma

On 16/06/2015 01:36, Hefty, Sean wrote:
quoted
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.
What is the motivation for this change?
In the next patch ("IB/cma: Add net_dev and private data checks to RDMA
CM"), in cma_id_from_event(), I pass the port-space that is extracted
from the service ID to cma_ps_find(). Without this patch, I would need
to find the correct port-space IDR, effectively duplicating the code in
cma_select_inet_ps().

Regards,
Haggai

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help