Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

samples/bpf: Fix spelling typos in samples/bpf

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>

authored by

Chu Guangqing and committed by
Alexei Starovoitov
b74938a3 4f8543b5

+5 -5
+1 -1
samples/bpf/do_hbm_test.sh
··· 112 112 processArgs () { 113 113 for i in $args ; do 114 114 case $i in 115 - # Support for upcomming ingress rate limiting 115 + # Support for upcoming ingress rate limiting 116 116 #in) # support for upcoming ingress rate limiting 117 117 # dir="-i" 118 118 # dir_name="in"
+2 -2
samples/bpf/hbm.c
··· 5 5 * modify it under the terms of version 2 of the GNU General Public 6 6 * License as published by the Free Software Foundation. 7 7 * 8 - * Example program for Host Bandwidth Managment 8 + * Example program for Host Bandwidth Management 9 9 * 10 10 * This program loads a cgroup skb BPF program to enforce cgroup output 11 11 * (egress) or input (ingress) bandwidth limits. ··· 24 24 * beyond the rate limit specified while there is available 25 25 * bandwidth. Current implementation assumes there is only 26 26 * NIC (eth0), but can be extended to support multiple NICs. 27 - * Currrently only supported for egress. 27 + * Currently only supported for egress. 28 28 * -h Print this info 29 29 * prog BPF program file name. Name defaults to hbm_out_kern.o 30 30 */
+1 -1
samples/bpf/tcp_cong_kern.c
··· 5 5 * License as published by the Free Software Foundation. 6 6 * 7 7 * BPF program to set congestion control to dctcp when both hosts are 8 - * in the same datacenter (as deteremined by IPv6 prefix). 8 + * in the same datacenter (as determined by IPv6 prefix). 9 9 * 10 10 * Use "bpftool cgroup attach $cg sock_ops $prog" to load this BPF program. 11 11 */
+1 -1
samples/bpf/tracex1.bpf.c
··· 20 20 int bpf_prog1(struct pt_regs *ctx) 21 21 { 22 22 /* attaches to kprobe __netif_receive_skb_core, 23 - * looks for packets on loobpack device and prints them 23 + * looks for packets on loopback device and prints them 24 24 * (wildcard is used for avoiding symbol mismatch due to optimization) 25 25 */ 26 26 char devname[IFNAMSIZ];