On Mon, Mar 18, 2019 at 12:20:59PM -0700, Dennis Dalessandro wrote: > From: Kaike Wan <kaike.wan@xxxxxxxxx> > > Currently, FECN handling is not implemented on TID RDMA > expected receive packets and therefore CCA can't be turned > on when TID RDMA is enabled. This patch adds the CCA support > to TID RDMA protocol by: > - modifying FECN RSM rule to include kernel receive contexts; > - For TID_RDMA READ RESP or TID RDMA ACK packet, a CNP will be sent > out if the FECN bit is set. For other TID RDMA packets that generate > at least one response packet, the BECN bit will be set in the > first response packet; > - Copying expected packet data to destination buffer when FECN bit > is set in the TID RDMA READ RESP or TID RDMA WRITE DATA packet. In > this case, the expected packet is received as an eager packet; > - Handling the TID sequence error for subsequent normal expected > packets. > > Reviewed-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > Reviewed-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> > Reviewed-by: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx> > Signed-off-by: Kaike Wan <kaike.wan@xxxxxxxxx> > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> > --- > drivers/infiniband/hw/hfi1/chip.c | 35 ++++--- > drivers/infiniband/hw/hfi1/driver.c | 4 + > drivers/infiniband/hw/hfi1/tid_rdma.c | 173 +++++++++++++++++++++++++++------ > 3 files changed, 167 insertions(+), 45 deletions(-) Applied to for-next, thanks Jason