Skip to content

Commit 53dc75a

Browse files
committed
usnic: ensure to reset flags on returned frags
Signed-off-by: Jeff Squyres <[email protected]>
1 parent c4d7876 commit 53dc75a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

opal/mca/btl/usnic/btl_usnic_frag.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* All rights reserved.
1212
* Copyright (c) 2006 Sandia National Laboratories. All rights
1313
* reserved.
14-
* Copyright (c) 2013-2015 Cisco Systems, Inc. All rights reserved.
14+
* Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved.
1515
* $COPYRIGHT$
1616
*
1717
* Additional copyrights may follow
@@ -370,6 +370,7 @@ opal_btl_usnic_small_send_frag_alloc(opal_btl_usnic_module_t *module)
370370

371371
/* this belongs in constructor... */
372372
frag->ssf_base.sf_base.uf_freelist = &(module->small_send_frags);
373+
frag->ssf_segment.ss_send_posted = 0;
373374

374375
assert(frag);
375376
assert(OPAL_BTL_USNIC_FRAG_SMALL_SEND == frag->ssf_base.sf_base.uf_type);
@@ -480,6 +481,14 @@ opal_btl_usnic_frag_return(
480481
}
481482
}
482483

484+
/* Reset the "send_posted" flag on the embedded segment for small
485+
fragments */
486+
else if (frag->uf_type == OPAL_BTL_USNIC_FRAG_SMALL_SEND) {
487+
opal_btl_usnic_small_send_frag_t *sfrag;
488+
sfrag = (opal_btl_usnic_small_send_frag_t *) frag;
489+
sfrag->ssf_segment.ss_send_posted = 0;
490+
}
491+
483492
USNIC_COMPAT_FREE_LIST_RETURN(frag->uf_freelist, &(frag->uf_base.super));
484493
}
485494

0 commit comments

Comments
 (0)