]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipath: Fix receiving UD messages with immediate data
authorRalph Campbell <ralph.campbell@qlogic.com>
Tue, 15 Jan 2008 23:58:13 +0000 (15:58 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 16 Jan 2008 22:42:35 +0000 (14:42 -0800)
commit0f91ce26b044d65c72d073898fa9a01829bd7d4c
tree32788676e5f262d540d8da36ec3f76edda9cb262
parent7920b9221a79d11c49f7a09e5e3359020d880a9d
IB/ipath: Fix receiving UD messages with immediate data

This fixes a small bug in ipath_ud_rcv()'s handling of UD messages
with immediate data.  We need to test whether immediate data is
present and update the header size accordingly *before* testing the
packet size from the header against the actual received length.
Otherwise the wrong header size will be used and all messages with
immediate data will be dropped.

This bug keeps MVAPICH-UD and HP MPI from working at all on ipath devices.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_ud.c