[openib-general] [PATCH v2] mad: use GID/LID on requester side when matching responses to requests

Jack Morgenstein jackm at mellanox.co.il
Sun Apr 16 00:46:28 PDT 2006


On Wednesday 12 April 2006 20:45, Hal Rosenstock wrote:
> > +		if ((wr->tid == mad->mad_hdr.tid) &&
> > +		    rcv_has_same_class(wr, wc) &&
> > +		    /*
> > +		     * Don't check GID for direct routed MADs.
> > +		     * These might have permissive LIDs.
>
> What's the relevance of the latter comment ? VL15 packets never have
> GRHs so there are no GIDs so I think the first comment is sufficient.
>
My intent was "Don't check GID/LID".  In the case of VL15 packets, only the 
LID can be checked, since there is no GID (as you point out).  Per IB Spec,
we are checking GIDs -- and if there is no GID, the LIDs are compared.

- Jack



More information about the general mailing list