Skip to content

Commit 04fb731

Browse files
committed
WIP: quic: quic_cc_bbr modifs TO BE CHECKED
1 parent cfe25ae commit 04fb731

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/quic_cc_bbr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <haproxy/tools.h>
99
#include <haproxy/window_filter.h>
1010

11+
//#define fprintf(args, ...) do {} while(0);
1112
/* XXX TO BE REMOVED */
1213
#define true 1
1314
#define false 0
@@ -1082,6 +1083,7 @@ static void bbr_update_on_loss(struct quic_cc *cc, struct quic_tx_packet *pkt,
10821083
if (bbr->state == BBR_ST_STARTUP)
10831084
return;
10841085

1086+
fprintf(stderr, "LOST pkt #num %llu\n", (ull)pkt->pn_node.key);
10851087
bbr_handle_lost_packet(bbr, p, pkt, lost);
10861088
}
10871089

@@ -1138,7 +1140,10 @@ unsigned long long bbr_pacing_delay_ns(const struct quic_cc *cc)
11381140
{
11391141
struct bbr *bbr = quic_cc_priv(cc);
11401142
struct quic_cc_path *p = container_of(cc, struct quic_cc_path, cc);
1143+
fprintf(stderr, "pr=%llu sq=%llu\n",
1144+
(ull)bbr->pacing_rate, (ull)p->send_quantum);
11411145
return p->mtu * 1000000000 / bbr->pacing_rate;
1146+
//return p->send_quantum * 1000000000 / bbr->pacing_rate;
11421147
}
11431148

11441149
static const char *bbr_state_str(struct bbr *bbr)

0 commit comments

Comments
 (0)