IB/ipath: Fix RDMA write with immediate copy of last packet
authorRalph Campbell <ralph.campbell@qlogic.com>
Mon, 27 Oct 2008 22:31:25 +0000 (15:31 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 27 Oct 2008 22:31:25 +0000 (15:31 -0700)
commita8b56f296d7d977fea2512e353a131f8da490aa5
treeb40928bd5bb7f77df0671bf8842c6cd69dc6d069
parent332edc2f7fa58b818dfed1cede60272eecc27c0a
IB/ipath: Fix RDMA write with immediate copy of last packet

When the last packet of a RDMA write with immediate is received, the
next receive work queue entry ID should be used to generate a completion
entry. The code was incorrectly resetting part of the state used to copy
the last packet.

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