[PATCH v2 09/13] IB/cma: Add net_dev and private data checks to RDMA CM

2015-07-26 Thread Haggai Eran
Instead of relying on a the ib_cm module to check an incoming CM request's private data header, add these checks to the RDMA CM module. This allows a following patch to to clean up the ib_cm interface and remove the code that looks into the private headers. It will also allow supporting namespaces

RE: [PATCH v2 09/13] IB/cma: Add net_dev and private data checks to RDMA CM

2015-07-27 Thread Hefty, Sean
> @@ -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 po

Re: [PATCH v2 09/13] IB/cma: Add net_dev and private data checks to RDMA CM

2015-07-28 Thread Haggai Eran
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; >> +con