IB/hfi1: Disable header suppression for short packets
authorJakub Pawlak <jakub.pawlak@intel.com>
Thu, 8 Dec 2016 03:32:41 +0000 (19:32 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 11 Dec 2016 20:25:13 +0000 (15:25 -0500)
commite730139b3464cc740c33131c872f7d173744ef11
tree9790169be273e75be23839623b35f367989abe19
parent1b9e7749335281c086243c2dc75d2ad7c2b32abe
IB/hfi1: Disable header suppression for short packets

For the received packets with payload less or equal 8DWS
RxDmaDataFifoRdUncErr is not reported. There is set RHF.EccErr
if the header is not suppressed. When such packet is detected
on the send side the header suppression mechanism is disabled
by clearing SH bit in the packet header.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c
include/uapi/rdma/hfi/hfi1_user.h