>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. >+/** >+ * 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. - Sean -- 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
