staging/rdma/hfi1: add ACK coalescing logic
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 10 Nov 2015 14:14:01 +0000 (09:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Nov 2015 00:58:18 +0000 (16:58 -0800)
commit7c091e5c0685c463dc58e5115781f7ac0a1448d6
tree28ad8ba2a9087a36e998684768e1cb6c08536b3e
parent2fd36865b570667bf3deb0ad3e1f7739ce85c063
staging/rdma/hfi1: add ACK coalescing logic

Implement ACK coalesing logic using a 8 bit counter.

The algorithm is send pio ack when:
- fecn present
- this is the first packet in an interrupt session
- counter is >= HFI1_PSN_CREDIT

Otherwise the ack is defered.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/qp.c
drivers/staging/rdma/hfi1/rc.c
drivers/staging/rdma/hfi1/verbs.h