public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Some spelling error fixes in samples directory
@ 2025-10-14  6:08 Chu Guangqing
  2025-10-14  6:08 ` [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf Chu Guangqing
  0 siblings, 1 reply; 7+ messages in thread
From: Chu Guangqing @ 2025-10-14  6:08 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede
  Cc: bpf, linux-kernel, kvm, Chu Guangqing

Fixes for some spelling errors in samples directory

Chu Guangqing (1):
  samples/bpf: Fix spelling typo in samples/bpf

 samples/bpf/do_hbm_test.sh  | 2 +-
 samples/bpf/hbm.c           | 4 ++--
 samples/bpf/tcp_cong_kern.c | 2 +-
 samples/bpf/tracex1.bpf.c   | 2 +-
 samples/vfio-mdev/mtty.c    | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.43.7


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-14  6:08 [PATCH v2 0/1] Some spelling error fixes in samples directory Chu Guangqing
@ 2025-10-14  6:08 ` Chu Guangqing
  2025-10-14  6:48   ` Menglong Dong
  2025-10-14 20:00   ` Alex Williamson
  0 siblings, 2 replies; 7+ messages in thread
From: Chu Guangqing @ 2025-10-14  6:08 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede
  Cc: bpf, linux-kernel, kvm, Chu Guangqing

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".

mtty.c
The comment incorrectly used "atleast" instead of "at least".

Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
---
 samples/bpf/do_hbm_test.sh  | 2 +-
 samples/bpf/hbm.c           | 4 ++--
 samples/bpf/tcp_cong_kern.c | 2 +-
 samples/bpf/tracex1.bpf.c   | 2 +-
 samples/vfio-mdev/mtty.c    | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/samples/bpf/do_hbm_test.sh b/samples/bpf/do_hbm_test.sh
index 38e4599350db..7f4f722787d5 100755
--- a/samples/bpf/do_hbm_test.sh
+++ b/samples/bpf/do_hbm_test.sh
@@ -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"
diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c
index bf66277115e2..fc88d4dbdf48 100644
--- a/samples/bpf/hbm.c
+++ b/samples/bpf/hbm.c
@@ -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
  */
diff --git a/samples/bpf/tcp_cong_kern.c b/samples/bpf/tcp_cong_kern.c
index 2311fc9dde85..339415eac477 100644
--- a/samples/bpf/tcp_cong_kern.c
+++ b/samples/bpf/tcp_cong_kern.c
@@ -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.
  */
diff --git a/samples/bpf/tracex1.bpf.c b/samples/bpf/tracex1.bpf.c
index 0ab39d76ff8f..ceedf0b1d479 100644
--- a/samples/bpf/tracex1.bpf.c
+++ b/samples/bpf/tracex1.bpf.c
@@ -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];
diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c
index 59eefe2fed10..6cb3e5974990 100644
--- a/samples/vfio-mdev/mtty.c
+++ b/samples/vfio-mdev/mtty.c
@@ -624,7 +624,7 @@ static void handle_bar_read(unsigned int index, struct mdev_state *mdev_state,
 		u8 lsr = 0;
 
 		mutex_lock(&mdev_state->rxtx_lock);
-		/* atleast one char in FIFO */
+		/* at least one char in FIFO */
 		if (mdev_state->s[index].rxtx.head !=
 				 mdev_state->s[index].rxtx.tail)
 			lsr |= UART_LSR_DR;
-- 
2.43.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-14  6:08 ` [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf Chu Guangqing
@ 2025-10-14  6:48   ` Menglong Dong
  2025-10-14  7:54     ` Chu Guangqing
  2025-10-14 20:00   ` Alex Williamson
  1 sibling, 1 reply; 7+ messages in thread
From: Menglong Dong @ 2025-10-14  6:48 UTC (permalink / raw)
  To: Chu Guangqing
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede, bpf,
	linux-kernel, kvm, Chu Guangqing

On 2025/10/14 14:08, Chu Guangqing wrote:
> 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".
> 
> mtty.c
> The comment incorrectly used "atleast" instead of "at least".
> 
> Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>

Hi, Guangqing.

The change log is preferred when you send a new version, which
can make people know the difference in this version quickly. It
could follow the SOB like this:

Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
---
v2:
- xxx
---

The content that wrapped by the "---" will not be visible after the
patch being applied, so you can put whatever you want here.

> ---
>  samples/bpf/do_hbm_test.sh  | 2 +-
>  samples/bpf/hbm.c           | 4 ++--
>  samples/bpf/tcp_cong_kern.c | 2 +-
>  samples/bpf/tracex1.bpf.c   | 2 +-
>  samples/vfio-mdev/mtty.c    | 2 +-

You titled the patch "samples/bpf: Fix spelling typo in samples/bpf",
but this file is not in the samples/bpf, right? So I think we'd better
split it out.

And it's preferred to tag you patch with "bpf" or "bpf-next", such
as [PATCH bpf-next V2], so the CI can run some testings for you,
even though it's not necessary for this patch.

BTW, "Guangqing Chu" will be better, according to the habit :)

Thanks!
Menglong Dong

>  5 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/samples/bpf/do_hbm_test.sh b/samples/bpf/do_hbm_test.sh
> index 38e4599350db..7f4f722787d5 100755
> --- a/samples/bpf/do_hbm_test.sh
> +++ b/samples/bpf/do_hbm_test.sh
> @@ -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"
> diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c
> index bf66277115e2..fc88d4dbdf48 100644
> --- a/samples/bpf/hbm.c
> +++ b/samples/bpf/hbm.c
> @@ -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
>   */
> diff --git a/samples/bpf/tcp_cong_kern.c b/samples/bpf/tcp_cong_kern.c
> index 2311fc9dde85..339415eac477 100644
> --- a/samples/bpf/tcp_cong_kern.c
> +++ b/samples/bpf/tcp_cong_kern.c
> @@ -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.
>   */
> diff --git a/samples/bpf/tracex1.bpf.c b/samples/bpf/tracex1.bpf.c
> index 0ab39d76ff8f..ceedf0b1d479 100644
> --- a/samples/bpf/tracex1.bpf.c
> +++ b/samples/bpf/tracex1.bpf.c
> @@ -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];
> diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c
> index 59eefe2fed10..6cb3e5974990 100644
> --- a/samples/vfio-mdev/mtty.c
> +++ b/samples/vfio-mdev/mtty.c
> @@ -624,7 +624,7 @@ static void handle_bar_read(unsigned int index, struct mdev_state *mdev_state,
>  		u8 lsr = 0;
>  
>  		mutex_lock(&mdev_state->rxtx_lock);
> -		/* atleast one char in FIFO */
> +		/* at least one char in FIFO */
>  		if (mdev_state->s[index].rxtx.head !=
>  				 mdev_state->s[index].rxtx.tail)
>  			lsr |= UART_LSR_DR;
> 





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-14  6:48   ` Menglong Dong
@ 2025-10-14  7:54     ` Chu Guangqing
  0 siblings, 0 replies; 7+ messages in thread
From: Chu Guangqing @ 2025-10-14  7:54 UTC (permalink / raw)
  To: menglong.dong
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede, bpf,
	linux-kernel, kvm, Chu Guangqing

Hi Menglong,

>The change log is preferred when you send a new version, which
>can make people know the difference in this version quickly. It
>could follow the SOB like this:
>
>Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
>---
>v2:
>- xxx
>---
There are no other changes in Version 2 except that all (relevant fixes) have been combined into a single patch.

v1:
 - https://lore.kernel.org/all/20251014023450.1023-1-chuguangqing@inspur.com/

>You titled the patch "samples/bpf: Fix spelling typo in samples/bpf",
>but this file is not in the samples/bpf, right? So I think we'd better
>split it out.
In version 1, someone requested "One patch for all typos".
Please refer to this email.
https://lore.kernel.org/all/CAADnVQKMgbDV2poeHYmJg0=GD-F2zDTcjSxcUDZSO3Y5EwD17Q@mail.gmail.com/

>BTW, "Guangqing Chu" will be better, according to the habit :)
I prefer using the current spelling order.

Best regards
Chu Guangqing


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-14  6:08 ` [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf Chu Guangqing
  2025-10-14  6:48   ` Menglong Dong
@ 2025-10-14 20:00   ` Alex Williamson
  2025-10-15  0:59     ` Gary Chu(楚光庆)
  1 sibling, 1 reply; 7+ messages in thread
From: Alex Williamson @ 2025-10-14 20:00 UTC (permalink / raw)
  To: Chu Guangqing
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede, bpf,
	linux-kernel, kvm

On Tue, 14 Oct 2025 14:08:49 +0800
Chu Guangqing <chuguangqing@inspur.com> wrote:

> 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".
> 
> mtty.c
> The comment incorrectly used "atleast" instead of "at least".
> 
> Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
> ---
>  samples/bpf/do_hbm_test.sh  | 2 +-
>  samples/bpf/hbm.c           | 4 ++--
>  samples/bpf/tcp_cong_kern.c | 2 +-
>  samples/bpf/tracex1.bpf.c   | 2 +-
>  samples/vfio-mdev/mtty.c    | 2 +-
>  5 files changed, 6 insertions(+), 6 deletions(-)
> 
...
> diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c
> index 59eefe2fed10..6cb3e5974990 100644
> --- a/samples/vfio-mdev/mtty.c
> +++ b/samples/vfio-mdev/mtty.c
> @@ -624,7 +624,7 @@ static void handle_bar_read(unsigned int index, struct mdev_state *mdev_state,
>  		u8 lsr = 0;
>  
>  		mutex_lock(&mdev_state->rxtx_lock);
> -		/* atleast one char in FIFO */
> +		/* at least one char in FIFO */
>  		if (mdev_state->s[index].rxtx.head !=
>  				 mdev_state->s[index].rxtx.tail)
>  			lsr |= UART_LSR_DR;

I'd suggest this go through bpf since it touches more there.  For mtty,

Acked-by: Alex Williamson <alex@shazbot.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-14 20:00   ` Alex Williamson
@ 2025-10-15  0:59     ` Gary Chu(楚光庆)
  2025-10-15  1:05       ` Alex Williamson
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Chu(楚光庆) @ 2025-10-15  0:59 UTC (permalink / raw)
  To: Alex Williamson
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede, bpf,
	linux-kernel, kvm

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

>I'd suggest this go through bpf since it touches more there.  For mtty,
>
>Acked-by: Alex Williamson <alex@shazbot.org>
Can I understand this as splitting into two separate threads: one for BPF and one for mtty?

Best regards
Chu Guangqing

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2683 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf
  2025-10-15  0:59     ` Gary Chu(楚光庆)
@ 2025-10-15  1:05       ` Alex Williamson
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Williamson @ 2025-10-15  1:05 UTC (permalink / raw)
  To: Gary Chu(楚光庆)
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, kwankhede, bpf,
	linux-kernel, kvm

On Tue, Oct 14, 2025, at 6:59 PM, Gary Chu(楚光庆) wrote:
>>I'd suggest this go through bpf since it touches more there.  For mtty,
>>
>>Acked-by: Alex Williamson <alex@shazbot.org>
> Can I understand this as splitting into two separate threads: one for 
> BPF and one for mtty?

It might have been a bit of an over correction to roll 5 patches into 1,
one for vfio/mtty and one for bpf would have been easier to split between
maintainers, but I'm providing my ack so it can go through the bpf folks
since this is fairly inconsequential.  Thanks,

Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-15  1:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14  6:08 [PATCH v2 0/1] Some spelling error fixes in samples directory Chu Guangqing
2025-10-14  6:08 ` [PATCH v2 1/1] samples/bpf: Fix spelling typo in samples/bpf Chu Guangqing
2025-10-14  6:48   ` Menglong Dong
2025-10-14  7:54     ` Chu Guangqing
2025-10-14 20:00   ` Alex Williamson
2025-10-15  0:59     ` Gary Chu(楚光庆)
2025-10-15  1:05       ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox