File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments