Skip to content

Commit

Permalink
UCT/IB/RC: Don't do FC on failed RC EP
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Feb 14, 2022
1 parent a741b8f commit 6cdcfc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/uct/ib/rc/base/rc_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,10 @@ ucs_status_t uct_rc_iface_fc_handler(uct_rc_iface_t *iface, unsigned qp_num,

ucs_assert(iface->config.fc_enabled);

if ((ep == NULL) || (ep->flags & UCT_RC_EP_FLAG_FLUSH_CANCEL)) {
/* We get fc for ep which is being removed or cancelled, so should ignore it */
if ((ep == NULL) || (ep->flags & (UCT_RC_EP_FLAG_FLUSH_CANCEL |
UCT_RC_EP_FLAG_ERR_HANDLER_INVOKED))) {
/* We get fc for ep which is being removed/cancelled/failed, so should
* ignore it */
if (fc_hdr == UCT_RC_EP_FC_PURE_GRANT) {
return UCS_OK;
}
Expand Down

0 comments on commit 6cdcfc7

Please sign in to comment.