1
1

usnic: check send credits on data channel for data frags

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
Jeff Squyres 2017-01-09 20:41:32 +00:00
родитель 879d25e5df
Коммит c4d7876ca0

Просмотреть файл

@ -1318,8 +1318,8 @@ usnic_send(
if (frag->sf_base.uf_type == OPAL_BTL_USNIC_FRAG_SMALL_SEND &&
frag->sf_ack_bytes_left < module->max_tiny_payload &&
WINDOW_OPEN(endpoint) &&
(get_send_credits(&module->mod_channels[USNIC_PRIORITY_CHANNEL]) >=
module->mod_channels[USNIC_PRIORITY_CHANNEL].fastsend_wqe_thresh)) {
(get_send_credits(&module->mod_channels[USNIC_DATA_CHANNEL]) >=
module->mod_channels[USNIC_DATA_CHANNEL].fastsend_wqe_thresh)) {
size_t payload_len;
sfrag = (opal_btl_usnic_small_send_frag_t *)frag;