Skip to content

Commit c4d7876

Browse files
committed
usnic: check send credits on data channel for data frags
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 879d25e commit c4d7876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,8 @@ usnic_send(
13181318
if (frag->sf_base.uf_type == OPAL_BTL_USNIC_FRAG_SMALL_SEND &&
13191319
frag->sf_ack_bytes_left < module->max_tiny_payload &&
13201320
WINDOW_OPEN(endpoint) &&
1321-
(get_send_credits(&module->mod_channels[USNIC_PRIORITY_CHANNEL]) >=
1322-
module->mod_channels[USNIC_PRIORITY_CHANNEL].fastsend_wqe_thresh)) {
1321+
(get_send_credits(&module->mod_channels[USNIC_DATA_CHANNEL]) >=
1322+
module->mod_channels[USNIC_DATA_CHANNEL].fastsend_wqe_thresh)) {
13231323
size_t payload_len;
13241324

13251325
sfrag = (opal_btl_usnic_small_send_frag_t *)frag;

0 commit comments

Comments
 (0)