Skip to content
Commit 47f2bce9 authored by Roland Dreier's avatar Roland Dreier
Browse files

[IB] srp: don't post receive if no send buf available



Have __srp_get_tx_iu() fail if the target port's request limit will
not allow the initiator to post a send.  This avoids continuing on and
posting a receive, and then failing to post a corresponding send.  If
that happens, then the initiator will end up with an extra receive
posted, and if this happens to much, the receive queue will overflow.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 5f068992
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment