MPTCP Linux Development
 help / color / mirror / Atom feed
From: Mat Martineau <mathew.j.martineau@linux.intel.com>
To: Matthieu Baerts <matthieu.baerts@tessares.net>
Cc: Florian Westphal <fw@strlen.de>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp] selftest: wait before trasnmitting first data chunk
Date: Thu, 19 Aug 2021 16:19:16 -0700 (PDT)	[thread overview]
Message-ID: <571b2e3a-cd36-368a-4184-8cf42eb33b5@linux.intel.com> (raw)
In-Reply-To: <dda5fa72-be05-cca2-6839-343b56644ab9@tessares.net>

On Thu, 19 Aug 2021, Matthieu Baerts wrote:

> Hi Florian,
>
> On 19/08/2021 15:00, Florian Westphal wrote:
>> Squashto: selftests: mptcp: add mptcp getsockopt test cases
>>
>> Mathieu reports spurious failure of the selftest:
>>  mptcp_sockopt.c:362: do_getsockopt_tcp_info: Assertion `ti.ti[0].tcpi_bytes_received == r' failed.
>>  mptcp_sockopt.c:330: do_getsockopt_mptcp_info: Assertion `s-&gt;mi.mptcpi_rcv_nxt + r == i.mptcpi_rcv_nxt' failed.
>>
>> This is because client and server are racing.
>> The first getsockopt() for (MP)TCP_INFO might be called when some data
>> was already received, but the mptcpi_rcv_nxt assertion relies on the
>> initial call to fetch a 'start sequence number'.
>>
>> Extend the pipe (that was used to unblock the 'connect process' when
>> the server had bound a socket), it now tells when to connet and when
>> to send the first chunk of data.
>>
>> In addition, its remote chance, but possible, that tx is slower
>> than expected so allow tcpinfo to wait a bit for more data to arrive.
>>
>> After this, 20k invocations pass without failures.
>
> Thank you for this patch! It looks good to me!
>
> It is also passing multiple times without issues on my side with and
> without a debug kernel!
>

Looks good to me as well. Ok to squash with "selftests: mptcp: add mptcp 
getsockopt test cases"?

--
Mat Martineau
Intel

  reply	other threads:[~2021-08-19 23:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19 13:00 [PATCH mptcp] selftest: wait before trasnmitting first data chunk Florian Westphal
2021-08-19 14:56 ` Matthieu Baerts
2021-08-19 23:19   ` Mat Martineau [this message]
2021-08-20  7:46 ` Matthieu Baerts

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=571b2e3a-cd36-368a-4184-8cf42eb33b5@linux.intel.com \
    --to=mathew.j.martineau@linux.intel.com \
    --cc=fw@strlen.de \
    --cc=matthieu.baerts@tessares.net \
    --cc=mptcp@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox