From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com,
Willem de Bruijn <willemb@google.com>
Subject: Re: [PATCH net-next v2] selftests/net: SO_TXTIME with ETF and FQ
Date: Fri, 24 May 2019 10:10:08 -0700 [thread overview]
Message-ID: <8736l3n5hr.fsf@intel.com> (raw)
In-Reply-To: <20190523174846.84394-1-willemdebruijn.kernel@gmail.com>
Hi,
Willem de Bruijn <willemdebruijn.kernel@gmail.com> writes:
> From: Willem de Bruijn <willemb@google.com>
>
> The SO_TXTIME API enables packet tranmission with delayed delivery.
> This is currently supported by the ETF and FQ packet schedulers.
>
> Evaluate the interface with both schedulers. Install the scheduler
> and send a variety of packets streams: without delay, with one
> delayed packet, with multiple ordered delays and with reordering.
> Verify that packets are released by the scheduler in expected order.
>
> The ETF qdisc requires a timestamp in the future on every packet. It
> needs a delay on the qdisc else the packet is dropped on dequeue for
> having a delivery time in the past. The test value is experimentally
> derived. ETF requires clock_id CLOCK_TAI. It checks this base and
> drops for non-conformance.
>
> The FQ qdisc expects clock_id CLOCK_MONOTONIC, the base used by TCP
> as of commit fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC").
> Within a flow there is an expecation of ordered delivery, as shown by
> delivery times of test 4. The FQ qdisc does not require all packets to
> have timestamps and does not drop for non-conformance.
>
> The large (msec) delays are chosen to avoid flakiness.
>
> Output:
>
> SO_TXTIME ipv6 clock monotonic
> payload:a delay:28 expected:0 (us)
>
> SO_TXTIME ipv4 clock monotonic
> payload:a delay:38 expected:0 (us)
>
> SO_TXTIME ipv6 clock monotonic
> payload:a delay:40 expected:0 (us)
>
> SO_TXTIME ipv4 clock monotonic
> payload:a delay:33 expected:0 (us)
>
> SO_TXTIME ipv6 clock monotonic
> payload:a delay:10120 expected:10000 (us)
>
> SO_TXTIME ipv4 clock monotonic
> payload:a delay:10102 expected:10000 (us)
>
> [.. etc ..]
>
> OK. All tests passed
>
> Changes v1->v2: update commit message output
>
> Signed-off-by: Willem de Bruijn <willemb@google.com>
> Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Cheers,
--
Vinicius
next prev parent reply other threads:[~2019-05-24 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 17:48 [PATCH net-next v2] selftests/net: SO_TXTIME with ETF and FQ Willem de Bruijn
2019-05-24 17:10 ` Vinicius Costa Gomes [this message]
2019-05-24 20:35 ` David Miller
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=8736l3n5hr.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=willemb@google.com \
--cc=willemdebruijn.kernel@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).