diff mbox series

[REPOST] selftests: net: Fix minor typos in MPTCP and psock_tpacket tests

Message ID CAO9wTFggVh9LvJa_aH=dDBLrwBo8Ho4ZfYET3myExiqf0yfDCA@mail.gmail.com (mailing list archive)
State Changes Requested
Delegated to: Netdev Maintainers
Headers show
Series [REPOST] selftests: net: Fix minor typos in MPTCP and psock_tpacket tests | expand

Checks

Context Check Description
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Suchit K Feb. 18, 2025, 9:28 a.m. UTC
Fixes minor spelling errors:
- `simult_flows.sh`: "al testcases" -> "all testcases"
- `psock_tpacket.c`: "accross" -> "across"

Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
---
 tools/testing/selftests/net/mptcp/simult_flows.sh | 2 +-
 tools/testing/selftests/net/psock_tpacket.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Matthieu Baerts Feb. 18, 2025, 10:18 a.m. UTC | #1
Hi Suchit,

On 18/02/2025 10:28, Suchit K wrote:
> Fixes minor spelling errors:
> - `simult_flows.sh`: "al testcases" -> "all testcases"
> - `psock_tpacket.c`: "accross" -> "across"
> 
> Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
> ---
>  tools/testing/selftests/net/mptcp/simult_flows.sh | 2 +-
>  tools/testing/selftests/net/psock_tpacket.c       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh
> b/tools/testing/selftests/net/mptcp/simult_flows.sh

The patch is exactly the same as v1, containing the same issues: long
lines are wrapped, corrupting the patch, like here above.

> index 9c2a41597..2329c2f85 100755
> --- a/tools/testing/selftests/net/mptcp/simult_flows.sh
> +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh
> @@ -28,7 +28,7 @@ size=0
> 
>  usage() {
>   echo "Usage: $0 [ -b ] [ -c ] [ -d ] [ -i]"
> - echo -e "\t-b: bail out after first error, otherwise runs al testcases"
> + echo -e "\t-b: bail out after first error, otherwise runs all testcases"
>   echo -e "\t-c: capture packets for each test using tcpdump (default:
> no capture)"

Same here

>   echo -e "\t-d: debug this script"
>   echo -e "\t-i: use 'ip mptcp' instead of 'pm_nl_ctl'"
> diff --git a/tools/testing/selftests/net/psock_tpacket.c
> b/tools/testing/selftests/net/psock_tpacket.c

Same here

> index 404a2ce75..221270cee 100644
> --- a/tools/testing/selftests/net/psock_tpacket.c
> +++ b/tools/testing/selftests/net/psock_tpacket.c
> @@ -12,7 +12,7 @@
>   *
>   * Datapath:
>   *   Open a pair of packet sockets and send resp. receive an a priori known
> - *   packet pattern accross the sockets and check if it was received resp.
> + *   packet pattern across the sockets and check if it was received resp.
>   *   sent correctly. Fanout in combination with RX_RING is currently not
>   *   tested here.
>   *

How are you sending this patch? Using 'git send-email' following
instructions like the ones from [1]?

I do recommend using b4 to prepare and send patches, see [2].

[1] https://git-send-email.io
[2] https://b4.docs.kernel.org/en/latest/contributor/overview.html

Cheers,
Matt
Suchit K Feb. 18, 2025, 4:44 p.m. UTC | #2
Hi Matthieu. I'm sorry I was using Gmail and I realized from the
documentation that it shouldn't be used. I've configured git
send-email and will send the patch using that. Apologies for any
inconvenience and thanks for the feedback.

On Tue, 18 Feb 2025 at 15:48, Matthieu Baerts <matttbe@kernel.org> wrote:
>
> Hi Suchit,
>
> On 18/02/2025 10:28, Suchit K wrote:
> > Fixes minor spelling errors:
> > - `simult_flows.sh`: "al testcases" -> "all testcases"
> > - `psock_tpacket.c`: "accross" -> "across"
> >
> > Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
> > ---
> >  tools/testing/selftests/net/mptcp/simult_flows.sh | 2 +-
> >  tools/testing/selftests/net/psock_tpacket.c       | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh
> > b/tools/testing/selftests/net/mptcp/simult_flows.sh
>
> The patch is exactly the same as v1, containing the same issues: long
> lines are wrapped, corrupting the patch, like here above.
>
> > index 9c2a41597..2329c2f85 100755
> > --- a/tools/testing/selftests/net/mptcp/simult_flows.sh
> > +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh
> > @@ -28,7 +28,7 @@ size=0
> >
> >  usage() {
> >   echo "Usage: $0 [ -b ] [ -c ] [ -d ] [ -i]"
> > - echo -e "\t-b: bail out after first error, otherwise runs al testcases"
> > + echo -e "\t-b: bail out after first error, otherwise runs all testcases"
> >   echo -e "\t-c: capture packets for each test using tcpdump (default:
> > no capture)"
>
> Same here
>
> >   echo -e "\t-d: debug this script"
> >   echo -e "\t-i: use 'ip mptcp' instead of 'pm_nl_ctl'"
> > diff --git a/tools/testing/selftests/net/psock_tpacket.c
> > b/tools/testing/selftests/net/psock_tpacket.c
>
> Same here
>
> > index 404a2ce75..221270cee 100644
> > --- a/tools/testing/selftests/net/psock_tpacket.c
> > +++ b/tools/testing/selftests/net/psock_tpacket.c
> > @@ -12,7 +12,7 @@
> >   *
> >   * Datapath:
> >   *   Open a pair of packet sockets and send resp. receive an a priori known
> > - *   packet pattern accross the sockets and check if it was received resp.
> > + *   packet pattern across the sockets and check if it was received resp.
> >   *   sent correctly. Fanout in combination with RX_RING is currently not
> >   *   tested here.
> >   *
>
> How are you sending this patch? Using 'git send-email' following
> instructions like the ones from [1]?
>
> I do recommend using b4 to prepare and send patches, see [2].
>
> [1] https://git-send-email.io
> [2] https://b4.docs.kernel.org/en/latest/contributor/overview.html
>
> Cheers,
> Matt
> --
> Sponsored by the NGI0 Core fund.
>
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh
b/tools/testing/selftests/net/mptcp/simult_flows.sh
index 9c2a41597..2329c2f85 100755
--- a/tools/testing/selftests/net/mptcp/simult_flows.sh
+++ b/tools/testing/selftests/net/mptcp/simult_flows.sh
@@ -28,7 +28,7 @@  size=0

 usage() {
  echo "Usage: $0 [ -b ] [ -c ] [ -d ] [ -i]"
- echo -e "\t-b: bail out after first error, otherwise runs al testcases"
+ echo -e "\t-b: bail out after first error, otherwise runs all testcases"
  echo -e "\t-c: capture packets for each test using tcpdump (default:
no capture)"
  echo -e "\t-d: debug this script"
  echo -e "\t-i: use 'ip mptcp' instead of 'pm_nl_ctl'"
diff --git a/tools/testing/selftests/net/psock_tpacket.c
b/tools/testing/selftests/net/psock_tpacket.c
index 404a2ce75..221270cee 100644
--- a/tools/testing/selftests/net/psock_tpacket.c
+++ b/tools/testing/selftests/net/psock_tpacket.c
@@ -12,7 +12,7 @@ 
  *
  * Datapath:
  *   Open a pair of packet sockets and send resp. receive an a priori known
- *   packet pattern accross the sockets and check if it was received resp.
+ *   packet pattern across the sockets and check if it was received resp.
  *   sent correctly. Fanout in combination with RX_RING is currently not
  *   tested here.
  *