[IBAL, MTHCA] fix the work with av with valid grh. [mlnx: 3077]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 10 Sep 2008 12:44:47 +0000 (12:44 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 10 Sep 2008 12:44:47 +0000 (12:44 +0000)
commitc8a3dceffad43ec7f45c8141aac17ecb9986a520
tree8624ebaa048cd4f7f721fbdc793b398fbc0363cf
parent74e03e4ae51094f422c6b46a05fdf3ec8716c632
[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/trunk@1581 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/al/user/ual_av.c
hw/mlx4/user/hca/verbs.c
hw/mthca/user/mlnx_ual_av.c