IB/hfi1: Allow for non-double word multiple message sizes for user SDMA
authorIra Weiny <ira.weiny@intel.com>
Thu, 28 Jul 2016 01:08:42 +0000 (21:08 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commitc49298026908a8ce9dcf01ed68734ad171cef98b
tree303688733b41eadebc1f24ccbbedb259bda9d100
parentfe508272c963d62de4183c32b6883c3d54c557ef
IB/hfi1: Allow for non-double word multiple message sizes for user SDMA

The driver pads non-double word multiple message sizes but it doesn't
account for this padding when the packet length is calculated. Also, the
data length is miscalculated for message sizes less than 4 bytes due to
the bit representation in LRH. And there's a check for non-double word
multiple message sizes that prevents these messages from being sent.
This patch fixes length miscalculations and enables the functionality to
send non-double word multiple message sizes.

Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c
include/uapi/rdma/hfi/hfi1_user.h