IB: Set GIDs correctly in ib_create_ah_from_wc()
authorRalph Campbell <ralphc@pathscale.com>
Sat, 7 Jan 2006 00:43:47 +0000 (16:43 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 7 Jan 2006 00:43:47 +0000 (16:43 -0800)
commit4f8448dfe8d3804fadad90c9b77494238b4a4eae
tree0d057d70db0dd4c2dda85a3d932af70bd7025686
parentac4e7b35579de55db50d602a472858867808a9c3
IB: Set GIDs correctly in ib_create_ah_from_wc()

ib_create_ah_from_wc() doesn't create the correct return address (AH)
when there is a GRH present (source & dest GIDs need to be swapped).

Signed-off-by: Ralph Campbell <ralphc@pathscale.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/verbs.c