Mike Marciniszyn 270a9833b2 IB/hfi1: Add running average for adaptive pio
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@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-03-26 09:33:21 -03:00
..
2019-02-05 17:53:55 -05:00
2019-02-05 17:53:55 -05:00
2019-02-05 17:53:54 -05:00
2019-02-05 17:53:55 -05:00
2018-05-24 09:39:25 -06:00
2018-05-24 09:39:25 -06:00
2019-03-09 15:53:03 -08:00
2019-01-31 11:36:05 -05:00
2019-02-05 18:07:43 -05:00
2019-01-31 11:36:05 -05:00
2018-10-26 07:38:19 -07:00
2019-02-05 18:07:44 -05:00
2019-02-05 18:07:43 -05:00
2019-02-05 18:07:44 -05:00
2019-01-31 11:37:40 -05:00
2019-01-31 11:37:40 -05:00
2019-01-31 11:36:04 -05:00
2019-02-04 14:53:42 -07:00