mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
4f8543b5f2
commit
b74938a3bd
|
|
@ -112,7 +112,7 @@ function start_hbm () {
|
||||||
processArgs () {
|
processArgs () {
|
||||||
for i in $args ; do
|
for i in $args ; do
|
||||||
case $i in
|
case $i in
|
||||||
# Support for upcomming ingress rate limiting
|
# Support for upcoming ingress rate limiting
|
||||||
#in) # support for upcoming ingress rate limiting
|
#in) # support for upcoming ingress rate limiting
|
||||||
# dir="-i"
|
# dir="-i"
|
||||||
# dir_name="in"
|
# dir_name="in"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
* modify it under the terms of version 2 of the GNU General Public
|
* modify it under the terms of version 2 of the GNU General Public
|
||||||
* License as published by the Free Software Foundation.
|
* 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
|
* This program loads a cgroup skb BPF program to enforce cgroup output
|
||||||
* (egress) or input (ingress) bandwidth limits.
|
* (egress) or input (ingress) bandwidth limits.
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
* beyond the rate limit specified while there is available
|
* beyond the rate limit specified while there is available
|
||||||
* bandwidth. Current implementation assumes there is only
|
* bandwidth. Current implementation assumes there is only
|
||||||
* NIC (eth0), but can be extended to support multiple NICs.
|
* NIC (eth0), but can be extended to support multiple NICs.
|
||||||
* Currrently only supported for egress.
|
* Currently only supported for egress.
|
||||||
* -h Print this info
|
* -h Print this info
|
||||||
* prog BPF program file name. Name defaults to hbm_out_kern.o
|
* prog BPF program file name. Name defaults to hbm_out_kern.o
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
* License as published by the Free Software Foundation.
|
* License as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* BPF program to set congestion control to dctcp when both hosts are
|
* 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.
|
* Use "bpftool cgroup attach $cg sock_ops $prog" to load this BPF program.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ SEC("kprobe.multi/__netif_receive_skb_core*")
|
||||||
int bpf_prog1(struct pt_regs *ctx)
|
int bpf_prog1(struct pt_regs *ctx)
|
||||||
{
|
{
|
||||||
/* attaches to kprobe __netif_receive_skb_core,
|
/* 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)
|
* (wildcard is used for avoiding symbol mismatch due to optimization)
|
||||||
*/
|
*/
|
||||||
char devname[IFNAMSIZ];
|
char devname[IFNAMSIZ];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue