IB/qib: Process RDMA WRITE ONLY with IMMEDIATE properly
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Fri, 22 Oct 2010 22:00:48 +0000 (22:00 +0000)
committerRoland Dreier <rolandd@cisco.com>
Sat, 23 Oct 2010 05:12:15 +0000 (22:12 -0700)
commit5715f5d44b93507693feca6c62290e123e5ef688
tree45c739a21a57736c32be1794f321ef9589336dbe
parent0f2f930a67c763a71aacfdbc76de9a76de7d1a9e
IB/qib: Process RDMA WRITE ONLY with IMMEDIATE properly

See table 35 in IBA - the header order for RDMA_WRITE_ONLY_WITH_IMMEDIATE
and SEND_LAST_WITH_IMMEDIATE is different: the RDMA_WRITE_ONLY has
a RETH header before the immediate data, so we need a different code path
to extract the immediate data.

I tested this with a userspace app that does RDMA_WRITE with immediate
on a QLE7140.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_rc.c
drivers/infiniband/hw/qib/qib_uc.c