]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipath: Fix RNR NAK handling
authorRalph Campbell <ralph.campbell@qlogic.com>
Sat, 15 Dec 2007 03:22:34 +0000 (19:22 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:34 +0000 (14:15 -0800)
commitd4edbf03623a7e9665a7abed88da3cee981cc1c7
tree0422b9197852617730b9b0d51964726dd5518ec3
parentedb9ebb931e65d4a3b335abe8456a8bfa50d3e5e
IB/ipath: Fix RNR NAK handling

This patch fixes a couple of minor problems with RNR NAK handling:
 - The insertion sort was causing extra delay when inserting ahead
   vs. behind an existing entry on the list.
 - A resend of a first packet of a message which is still not ready,
   needs another RNR NAK (i.e., it was suppressed when it shouldn't).
 - Also, the resend tasklet doesn't need to be woken up unless the
   ACK/NAK actually indicates progress has been made.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_rc.c
drivers/infiniband/hw/ipath/ipath_ruc.c