On Tue, Feb 26, 2019 at 08:46:16AM -0800, Dennis Dalessandro wrote: > From: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > > The adaptive PIO implementation only considers the current packet size > when deciding between SDMA and pio for a packet. > > This causes credit return forces if small and large packets > are interleaved. > > Add a running average to avoid costly credit forces so that a large > sequence of small packets is required to go below the threshold > that chooses pio. > > Reviewed-by: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx> > Signed-off-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> > --- > drivers/infiniband/hw/hfi1/qp.c | 2 ++ > drivers/infiniband/hw/hfi1/verbs.c | 7 ++++--- > drivers/infiniband/hw/hfi1/verbs.h | 1 + > 3 files changed, 7 insertions(+), 3 deletions(-) Applied to for-next, thanks Jason