On Wed, Jan 13, 2010 at 01:55:41PM -0800, Sean Hefty wrote:
> >Add ib_uverbs_get_mac() to be used by ibv_create_ah() to retirieve the remote
> >port's MAC address from the remote port's GID. Port link layer is also 
> >returned
> >by ibv_query_port().
> 
> Is this really to map the GID of a remote port to its MAC address, or is the
> mapping for a local port?
> 
> If it's the former, then I would expect the functionality to more naturally 
> fall
> into ib_addr, with rdma_resolve_addr being the user space interface for this.

Actually the intention is that this API will resolve any GID, local
or remote, to the port's MAC address. I am not sure if
rdma_resolve_addr() is a good choice for this task since it involves
sockets stuff; and if we want to utilize this API for pure IB verbs
then that would be inappropriate.

> 
> >+/**
> >+  * ib_get_mac - get the mac address for the specified gid
> >+  * @device: IB device used for traffic
> >+  * @port: port number used.
> >+  * @gid: gid to be resolved into mac
> >+  * @mac: mac of the port bearing this gid
> >+  */
> >+int ib_get_mac(struct ib_device *device, u8 port, u8 *gid, u8 *mac);
> 
> Other calls use union ib_gid * where gids are expected.

Agree. Will change this.
 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to