Jason Gunthorpe <[email protected]> wrote: >> Since IBoE requires usage of GRH, update ibv_*_pinpong examples to accept >> GIDs. GIDs are given as an index to the local port's table and are exchanged >> between the client and the server through the socket connection.
> Since these examples are meant as programming examples, using the GID > index as an command line parameter is not an example of good UI > design. Other tools (ie diags, ibtool, etc) accept the GID in > canonical IPv6 format and match that to the GID table. To my taste these examples should be used as programming examples for their verbs data path part, as for connection establishment, I would prefer app writers use the rdma-cm and I don't think the control plane of these examples (the IB L2/L3/L4 info exchange) should be used in real life apps. In the same manner that under IB the user doesn't specify the LID from the command line but rather the device and port, I don't think they need to specify the GID but rather the device and port. The index isn't always zero, since this is what let people test VLANs (under IBoE for each VLAN a new entry is added to the GID table as the GID includes both mac and vlan). Or. Or. -- 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
