summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/vnic_main.c
diff options
context:
space:
mode:
authorMitko Haralanov2018-11-28 19:19:15 +0100
committerJason Gunthorpe2018-12-07 03:50:08 +0100
commitfe4dd4239277486ca3a468e7bbeafd7ef3a5634e (patch)
tree7f5d21320db7b927b24ca27f9e945708062503b9 /drivers/infiniband/hw/hfi1/vnic_main.c
parentIB/hfi1: Ignore LNI errors before DC8051 transitions to Polling state (diff)
downloadkernel-qcow2-linux-fe4dd4239277486ca3a468e7bbeafd7ef3a5634e.tar.gz
kernel-qcow2-linux-fe4dd4239277486ca3a468e7bbeafd7ef3a5634e.tar.xz
kernel-qcow2-linux-fe4dd4239277486ca3a468e7bbeafd7ef3a5634e.zip
IB/hfi1: Correctly process FECN and BECN in packets
A CA is supposed to ignore FECN bits in multicast, ACK, and CNP packets. This patch corrects the behavior of the HFI1 driver in this regard by ignoring FECNs in those packet types. While fixing the above behavior, fix the extraction of the FECN and BECN bits from the packet headers for both 9B and 16B packets. Furthermore, this patch corrects the driver's response to a FECN in RDMA READ RESPONSE packets. Instead of sending an "empty" ACK, the driver now sends a CNP packet. While editing that code path, add the missing trace for CNP packets. Fixes: 88733e3b8450 ("IB/hfi1: Add 16B UD support") Fixes: f59fb9e05109 ("IB/hfi1: Fix handling of FECN marked multicast packet") Reviewed-by: Kaike Wan <kaike.wan@intel.com> Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/vnic_main.c')
0 files changed, 0 insertions, 0 deletions