Skip to content

Commit

Permalink
[DEBUG] DO NOT MERGE: tune buffer expiring
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Oct 14, 2019
1 parent 9bc7566 commit 54db0e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libknet/threads_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ static void reclaim_old_defrag_buf(knet_handle_t knet_h, struct knet_header *inb
*/
for (i = 0; i < KNET_MAX_LINK; i++) {
if (src_host->defrag_buf[i].in_use) {
if (src_host->defrag_buf[i].pckt_seq <= (inbuf->khp_data_seq_num - (KNET_MAX_LINK * 2))) {
if (src_host->defrag_buf[i].pckt_seq <= (inbuf->khp_data_seq_num - KNET_MAX_LINK)) {
log_debug(knet_h, KNET_SUB_RX, "Expiring old buffer");
src_host->defrag_buf[i].in_use = 0;
}
}
Expand Down

0 comments on commit 54db0e6

Please sign in to comment.