Skip to content

Commit

Permalink
Merge pull request #5520 from hoopoepg/topic/rc-ep-use-wrapper-uct_rc…
Browse files Browse the repository at this point in the history
…_txqp_available

RC/EP: use uct_rc_txqp_available instead of direct value access
  • Loading branch information
yosefe authored Aug 3, 2020
2 parents cace17e + 067e175 commit 3a3c1d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uct/ib/rc/base/rc_ep.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ static UCS_F_ALWAYS_INLINE int uct_rc_ep_has_tx_resources(uct_rc_ep_t *ep)
{
uct_rc_iface_t *iface = ucs_derived_of(ep->super.super.iface, uct_rc_iface_t);

return (ep->txqp.available > 0) && uct_rc_fc_has_resources(iface, &ep->fc);
return (uct_rc_txqp_available(&ep->txqp) > 0) &&
uct_rc_fc_has_resources(iface, &ep->fc);
}

static UCS_F_ALWAYS_INLINE void
Expand Down

0 comments on commit 3a3c1d8

Please sign in to comment.