[ofa-general] Re: [Bug 581] rdma_get_src_port() not returning the correct port.

Michael S. Tsirkin mst at dev.mellanox.co.il
Wed Apr 25 22:00:44 PDT 2007


So is this for OFED? For 2.6.21?

Quoting Steve Wise <swise at opengridcomputing.com>:
Subject: RE: [Bug 581] rdma_get_src_port() not returning the correct port.

That works!

Acked-by: Steve Wise <swise at opengridcomputing.com>


On Wed, 2007-04-25 at 15:47 -0700, Sean Hefty wrote:
> Can you give this a try?
> 
> The source address was being overwritten by whatever the user passed into
> rdma_bind_addr.
> 
> Signed-off-by: Sean Hefty <sean.hefty at intel.com>
> ---
> diff --git a/src/cma.c b/src/cma.c
> index c5f8cd9..fdadb69 100644
> --- a/src/cma.c
> +++ b/src/cma.c
> @@ -509,12 +509,7 @@ int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr
> *addr)
>  	if (ret != size)
>  		return (ret > 0) ? -ENODATA : ret;
>  
> -	ret = ucma_query_route(id);
> -	if (ret)
> -		return ret;
> -
> -	memcpy(&id->route.addr.src_addr, addr, addrlen);
> -	return 0;
> +	return ucma_query_route(id);
>  }
>  
>  int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr,
> 

_______________________________________________
general mailing list
general at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

-- 
MST



More information about the general mailing list