File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ opal_btl_usnic_post_segment(
8080#endif
8181
8282 assert (channel_id == USNIC_DATA_CHANNEL );
83+ assert (channel -> credits > 1 );
8384
8485 /* Send the segment */
8586 ret = fi_send (channel -> ep ,
@@ -135,6 +136,7 @@ opal_btl_usnic_post_ack(
135136#endif
136137
137138 assert (channel_id == USNIC_PRIORITY_CHANNEL );
139+ assert (channel -> credits > 1 );
138140
139141 ret = fi_send (channel -> ep ,
140142 sseg -> ss_ptr ,
@@ -241,6 +243,7 @@ opal_btl_usnic_endpoint_send_segment(
241243 receives its ACK. To find a unique slot in this array, use
242244 (seq % WINDOW_SIZE). */
243245 sfi = WINDOW_SIZE_MOD (sseg -> ss_base .us_btl_header -> pkt_seq );
246+ assert (NULL == endpoint -> endpoint_sent_segs [sfi ]);
244247 endpoint -> endpoint_sent_segs [sfi ] = sseg ;
245248 sseg -> ss_ack_pending = true;
246249
You can’t perform that action at this time.
0 commit comments