Skip to content

Commit b74938a

Browse files
Chu GuangqingAlexei Starovoitov
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 4f8543b commit b74938a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

samples/bpf/do_hbm_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function start_hbm () {
112112
processArgs () {
113113
for i in $args ; do
114114
case $i in
115-
# Support for upcomming ingress rate limiting
115+
# Support for upcoming ingress rate limiting
116116
#in) # support for upcoming ingress rate limiting
117117
# dir="-i"
118118
# dir_name="in"

samples/bpf/hbm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* modify it under the terms of version 2 of the GNU General Public
66
* License as published by the Free Software Foundation.
77
*
8-
* Example program for Host Bandwidth Managment
8+
* Example program for Host Bandwidth Management
99
*
1010
* This program loads a cgroup skb BPF program to enforce cgroup output
1111
* (egress) or input (ingress) bandwidth limits.
@@ -24,7 +24,7 @@
2424
* beyond the rate limit specified while there is available
2525
* bandwidth. Current implementation assumes there is only
2626
* NIC (eth0), but can be extended to support multiple NICs.
27-
* Currrently only supported for egress.
27+
* Currently only supported for egress.
2828
* -h Print this info
2929
* prog BPF program file name. Name defaults to hbm_out_kern.o
3030
*/

samples/bpf/tcp_cong_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License as published by the Free Software Foundation.
66
*
77
* 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).
99
*
1010
* Use "bpftool cgroup attach $cg sock_ops $prog" to load this BPF program.
1111
*/

samples/bpf/tracex1.bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SEC("kprobe.multi/__netif_receive_skb_core*")
2020
int bpf_prog1(struct pt_regs *ctx)
2121
{
2222
/* 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
2424
* (wildcard is used for avoiding symbol mismatch due to optimization)
2525
*/
2626
char devname[IFNAMSIZ];

0 commit comments

Comments
 (0)