From a34f6610bc88c107d1b864bf8f5df482f5a12d57 Mon Sep 17 00:00:00 2001 From: WangYuli Date: Mon, 15 Dec 2025 10:45:06 +0800 Subject: [PATCH] treewide: fix some typos 1. Correct typo 'bfttune' to 'bpftune' 2. Correct typo 'calcuate' to 'calculate'. Signed-off-by: WangYuli --- sample_tuner/sample_tuner.bpf.c | 2 +- src/tcp_conn_tuner.h | 2 +- test/strategy/strategy_tuner.bpf.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sample_tuner/sample_tuner.bpf.c b/sample_tuner/sample_tuner.bpf.c index f3864e4..6ea4944 100644 --- a/sample_tuner/sample_tuner.bpf.c +++ b/sample_tuner/sample_tuner.bpf.c @@ -26,7 +26,7 @@ BPF_FENTRY(proc_dostring_coredump, struct ctl_table *table, int write, struct bpftune_event event = {}; int ret, scenario_id = 0; - /* tuner id is a global declared in bpftune.bpf.h and set by bfttune + /* tuner id is a global declared in bpftune.bpf.h and set by bpftune * when the tuner is added. */ event.tuner_id = tuner_id; diff --git a/src/tcp_conn_tuner.h b/src/tcp_conn_tuner.h index 4f87ba6..306b80e 100644 --- a/src/tcp_conn_tuner.h +++ b/src/tcp_conn_tuner.h @@ -88,7 +88,7 @@ struct remote_host { #define RTT_SCALE 1000000 #define DELIVERY_SCALE 1000000 -/* The metric we calcuate compares current connection min_rtt and rate_delivered to +/* The metric we calculate compares current connection min_rtt and rate_delivered to * the min rtt and max rate delivered we have observed for the remote host. * The idea is that we want to reward congestion control algorithms that minimize * RTT and maximize delivery rate, as these are operating at the bottleneck diff --git a/test/strategy/strategy_tuner.bpf.c b/test/strategy/strategy_tuner.bpf.c index 91bb25a..ba031ae 100644 --- a/test/strategy/strategy_tuner.bpf.c +++ b/test/strategy/strategy_tuner.bpf.c @@ -27,7 +27,7 @@ BPF_FENTRY(proc_dostring_coredump, struct ctl_table *table, int write, struct bpftune_event event = {}; int ret, scenario_id = 0; - /* tuner id is a global declared in bpftune.bpf.h and set by bfttune + /* tuner id is a global declared in bpftune.bpf.h and set by bpftune * when the tuner is added. */ event.tuner_id = tuner_id; @@ -45,7 +45,7 @@ BPF_FENTRY(proc_dostring, struct ctl_table *table, int write, struct bpftune_event event = {}; int ret, scenario_id = 0; - /* tuner id is a global declared in bpftune.bpf.h and set by bfttune + /* tuner id is a global declared in bpftune.bpf.h and set by bpftune * when the tuner is added. */ event.tuner_id = tuner_id;