From bec8f9ac7d6ebefbce6bd4c882c0f9616f561f1c Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 9 Apr 2022 11:33:39 +0200 Subject: lib: Rename timerwheel_ack timerwheel_delayed_ack This makes it clear that we are scheduling a potential delayed acknowledgment instead of acknowledging a packet scheduled for retransmission. Also some small cosmetic fixes. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/frct.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/frct.c') diff --git a/src/lib/frct.c b/src/lib/frct.c index c2dfbf6b..d543ccb0 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -925,15 +925,13 @@ static void __frcti_rcv(struct frcti * frcti, pthread_rwlock_unlock(&frcti->lock); if (fd != -1) - timerwheel_ack(fd, frcti); + timerwheel_delayed_ack(fd, frcti); return; drop_packet: pthread_rwlock_unlock(&frcti->lock); - - send_frct_pkt(frcti); - shm_rdrbuff_remove(ai.rdrb, idx); + send_frct_pkt(frcti); return; } -- cgit v1.2.3