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 +
--
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies