All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matthieu.baerts@tessares.net>
To: Paolo Abeni <pabeni@redhat.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH v2 mptcp-next 4/4] selftests: mptcp: add tests for subflow creation failure
Date: Fri, 26 Nov 2021 18:57:11 +0100	[thread overview]
Message-ID: <f1d607c7-f718-7f32-b1c3-6f297b13e594@tessares.net> (raw)
In-Reply-To: <b4985eeb6e1d04ca82bd6abfcb382da71a2e396b.1637929034.git.pabeni@redhat.com>

Hi Paolo,

On 26/11/2021 13:19, Paolo Abeni wrote:
> Verify that, when multiple endpoints are available, subflows
> creation proceed even when the first additional subflow creation
> fails - due to packet drop on the relevant link
> 
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> v1 -> v2:
>  - add missing NF kconfig
>  - add more test-cases (drop, later subflow creation)

Thank you for the modifications!

> diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> index 2684ef9c0d42..6d342f9985b8 100755
> --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
> +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> @@ -975,6 +975,22 @@ chk_link_usage()
>  	fi
>  }
>  
> +wait_for_tw()
> +{
> +	local timeout_ms=$((timeout_poll * 1000))
> +	local time=0
> +	local ns=$1
> +
> +	while [ $time -lt $timeout_ms ]; do
> +		local cnt=`ip netns exec $ns ss -t state time-wait |wc -l`

(no need to change but it is often recommended to use $(...) instead of
`...` because it supports nested commands and is more "visible")

(...)

> @@ -1859,6 +1918,7 @@ usage()
>  {
>  	echo "mptcp_join usage:"
>  	echo "  -f subflows_tests"
> +	echo "  -f subflows_error_tests"

Detail: s/-f/-e/

I can fix it before applying if you didn't already plan to send a new v4 :)

Cheers,
Matt

PS: for the lagging a bit with the reviews!
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

  reply	other threads:[~2021-11-26 17:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 12:19 [PATCH v2 mptcp-next 0/4] mptcp: improve subflow creation on errors Paolo Abeni
2021-11-26 12:19 ` [PATCH v2 mptcp-next 1/4] mptcp: clean-up MPJ option writing Paolo Abeni
2021-11-26 12:19 ` [PATCH v2 mptcp-next 2/4] mptcp: keep track of used local endpoint Paolo Abeni
2021-11-26 17:53   ` Matthieu Baerts
2021-11-26 12:19 ` [PATCH v2 mptcp-next 3/4] mptcp: do not block subflows creation on errors Paolo Abeni
2021-11-26 17:53   ` Matthieu Baerts
2021-11-29 14:24     ` Paolo Abeni
2021-11-26 12:19 ` [PATCH v2 mptcp-next 4/4] selftests: mptcp: add tests for subflow creation failure Paolo Abeni
2021-11-26 17:57   ` Matthieu Baerts [this message]
2021-11-26 15:16 ` [PATCH v2 mptcp-next 0/4] mptcp: improve subflow creation on errors Paolo Abeni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1d607c7-f718-7f32-b1c3-6f297b13e594@tessares.net \
    --to=matthieu.baerts@tessares.net \
    --cc=mptcp@lists.linux.dev \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.