staging/rdma/hfi1: add common routine for queuing acks
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 10 Nov 2015 14:13:55 +0000 (09:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Nov 2015 00:58:18 +0000 (16:58 -0800)
commit2fd36865b570667bf3deb0ad3e1f7739ce85c063
tree2ec408ba2f153ba11db0e86f1355bb471e1f081c
parent46b010d3eeb8eb29c740c4ef09c666485f5c07e6
staging/rdma/hfi1: add common routine for queuing acks

This patch is a prelimary patch required to
coalesce acks.

The routine to "schedule" a QP for sending a NAK is
now centralized in rc_defer_ack().  The flag is changed
for clarity since the all acks will potentially use
the deferral  mechanism.

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/driver.c
drivers/staging/rdma/hfi1/rc.c
drivers/staging/rdma/hfi1/verbs.h