staging/rdma/hfi1: Add a credit push on diagpkt allocate fail
authorDean Luick <dean.luick@intel.com>
Tue, 1 Dec 2015 20:38:17 +0000 (15:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:51:55 +0000 (13:51 -0800)
commitd22f9d6bf5622bc3ffb709fb229715167a8bd533
tree5df2070952f21d03adb6efd70b01f1f4aef08b00
parent05087f3b224ad42086c019ff11679298faeb50f2
staging/rdma/hfi1: Add a credit push on diagpkt allocate fail

When sending a diagnostic packet, if the send context does not
have enough room, force a credit return and try again.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/diag.c