]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
samples/bpf: Fix spelling typos in samples/bpf
authorChu Guangqing <chuguangqing@inspur.com>
Wed, 15 Oct 2025 01:50:24 +0000 (09:50 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 19 Oct 2025 02:26:23 +0000 (19:26 -0700)
do_hbm_test.sh:
The comment incorrectly used "upcomming" instead of "upcoming".

hbm.c
The comment incorrectly used "Managment" instead of "Management".
The comment incorrectly used "Currrently" instead of "Currently".

tcp_cong_kern.c
The comment incorrectly used "deteremined" instead of "determined".

tracex1.bpf.c
The comment incorrectly used "loobpack" instead of "loopback".

Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
Link: https://lore.kernel.org/r/20251015015024.2212-2-chuguangqing@inspur.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/do_hbm_test.sh
samples/bpf/hbm.c
samples/bpf/tcp_cong_kern.c
samples/bpf/tracex1.bpf.c

index 38e4599350db11fb68ca97c6de8bcb723b71058a..7f4f722787d5adeb7f5b113251f88b0d065a20ab 100755 (executable)
@@ -112,7 +112,7 @@ function start_hbm () {
 processArgs () {
   for i in $args ; do
     case $i in
-    # Support for upcomming ingress rate limiting
+    # Support for upcoming ingress rate limiting
     #in)         # support for upcoming ingress rate limiting
     #  dir="-i"
     #  dir_name="in"
index bf66277115e2a9c7d1c7e25241bc47925ce48d45..fc88d4dbdf48f00aedf4d37f3061bdfd28b51c2e 100644 (file)
@@ -5,7 +5,7 @@
  * modify it under the terms of version 2 of the GNU General Public
  * License as published by the Free Software Foundation.
  *
- * Example program for Host Bandwidth Managment
+ * Example program for Host Bandwidth Management
  *
  * This program loads a cgroup skb BPF program to enforce cgroup output
  * (egress) or input (ingress) bandwidth limits.
@@ -24,7 +24,7 @@
  *             beyond the rate limit specified while there is available
  *             bandwidth. Current implementation assumes there is only
  *             NIC (eth0), but can be extended to support multiple NICs.
- *             Currrently only supported for egress.
+ *             Currently only supported for egress.
  *    -h       Print this info
  *    prog     BPF program file name. Name defaults to hbm_out_kern.o
  */
index 2311fc9dde854caaa257d4982388fca0d1faa3ec..339415eac477e8525fc878bde92a957ce25d3e8e 100644 (file)
@@ -5,7 +5,7 @@
  * License as published by the Free Software Foundation.
  *
  * BPF program to set congestion control to dctcp when both hosts are
- * in the same datacenter (as deteremined by IPv6 prefix).
+ * in the same datacenter (as determined by IPv6 prefix).
  *
  * Use "bpftool cgroup attach $cg sock_ops $prog" to load this BPF program.
  */
index 0ab39d76ff8f0ad8856b21ea21d00d77062e3206..ceedf0b1d4793fb672a33d2b4fddb74b8e05c038 100644 (file)
@@ -20,7 +20,7 @@ SEC("kprobe.multi/__netif_receive_skb_core*")
 int bpf_prog1(struct pt_regs *ctx)
 {
        /* attaches to kprobe __netif_receive_skb_core,
-        * looks for packets on loobpack device and prints them
+        * looks for packets on loopback device and prints them
         * (wildcard is used for avoiding symbol mismatch due to optimization)
         */
        char devname[IFNAMSIZ];