IB/hfi1: Set PbcInsertHcrc for TID RDMA packets
authorKaike Wan <kaike.wan@intel.com>
Thu, 24 Jan 2019 03:30:51 +0000 (19:30 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 5 Feb 2019 22:53:55 +0000 (17:53 -0500)
commit6b6cf9357f78057292ae662438f441cb84f93a25
treedd32692e782bb28d36602441ec032975b563ee40
parent742a3826cf82395e304df99f6494d04b0dd03a84
IB/hfi1: Set PbcInsertHcrc for TID RDMA packets

All TID RDMA packets are in KDETH packet format and therefore the
PbcInsertHcrc must be set properly before sending the packet to
hardware. Otherwise, the packets will be dropped by the receiver.
By default, HCRC is not inserted for 9B packets without KDETH, and
this patch adds that back for TID RDMA packets.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/verbs.c