Skip to content

Commit

Permalink
Merge pull request #196 from yosefe/topic/rc-mlx5-keepalive-dont-send…
Browse files Browse the repository at this point in the history
…-if-have-ops

RC/MLX5: Don't send keepalive if already have outstanding operations
  • Loading branch information
yosefe authored Aug 30, 2021
2 parents 6514de6 + 27e038e commit a0980bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uct/ib/rc/accel/rc_mlx5_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ uct_rc_mlx5_common_ka_progress(uct_rc_mlx5_iface_common_t *iface)

ucs_spin_lock(&iface->super.ep_list_lock);
ucs_list_for_each(ep, &iface->super.ep_list, super.list) {
if (ep->super.txqp.available < ep->tx.wq.bb_max) {
/* have outstanding operations */
continue;
}
ucs_trace("send keepalive grant on ep %p", ep);
uct_rc_ep_fc_send_grant(&ep->super);
}
Expand Down

0 comments on commit a0980bd

Please sign in to comment.