IB/core: Pass imm_data from ib_uverbs_send_wr to ib_send_wr correctly
authorLatchesar Ionkov <lucho@ionkov.net>
Sat, 19 Oct 2013 21:55:41 +0000 (15:55 -0600)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:42:54 +0000 (14:42 -0800)
commit6b7d103c1b11346499063d9167832596de754ea4
treeb6da2991326a0cf08d4d5dc856468913ae71a14c
parent959f58544b7f20c92d5eb43d1232c96c15c01bfb
IB/core: Pass imm_data from ib_uverbs_send_wr to ib_send_wr correctly

Currently, we don't copy the immediate data from the userspace struct
to the kernel one when UD messages are being sent.

This patch makes sure that the immediate data is set correctly.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c