[openib-general] Re: mthca: gid index bug?

Michael S. Tsirkin mst at mellanox.co.il
Tue Feb 7 01:46:48 PST 2006


Quoting r. Roland Dreier <rdreier at cisco.com>:
> Subject: Re: mthca: gid index bug?
> 
>  > Roland, in mthca_qp.c we have
>  > 
>  >                 path->mgid_index = ah->grh.sgid_index;
>  > 
>  > Shouldnt the port number be taken into account, like it
>  > is with mthca_av, where we have
>  > av->gid_index = (ah_attr->port_num - 1) * dev->limits.gid_table_len +
> 
> I really don't know.  The PRM just says "index to port GID table".
> Can you check it out at Mellanox and (even better) generate a patch if
> it's wrong?

The existing code is correct. We'll try to clarify this in the next PRM.
Thanks,

-- 
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies



More information about the general mailing list