]> git.openfabrics.org - ~shefty/rdma-win.git/commit
[IBAL, MTHCA] fix the work with av with valid grh. [mlnx: 3077]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 10 Sep 2008 12:42:47 +0000 (12:42 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 10 Sep 2008 12:42:47 +0000 (12:42 +0000)
commit80624fcd670c1d0b1ef83ff967ef9624f656fa29
treee7126399aec5cdcf3c6a010ff676f0960108a638
parentafbc5d8bc54804c54b237a58a3b81b3b8ef12eee
[IBAL, MTHCA] fix the work with av with valid grh. [mlnx: 3077]

The patch fix the behavior of av verbs in case that sgid isn't found at the gid_table.
Instead of exit with IB_INVALID_GID it sets the index to 0. Please note IB spec 11.2.2.2 regarding av verbs definition.

The patch also used grh.resv2 (rather than resv1) to avoid C4328 warning (improper member alignment).

Signed-off-by: Reuven Amitai reuven@mellanox.co.il
git-svn-id: svn://openib.tc.cornell.edu/gen1@1580 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
branches/WOF2-0/trunk/core/al/user/ual_av.c
branches/WOF2-0/trunk/hw/mlx4/user/hca/verbs.c
branches/WOF2-0/trunk/hw/mthca/user/mlnx_ual_av.c