All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Peter Oskolkov <posk@google.com>
Cc: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	netdev@vger.kernel.org, bpf@vger.kernel.org,
	Peter Oskolkov <posk@posk.io>
Subject: Re: [PATCH bpf-next 2/2] selftests: bpf: tc-bpf flow shaping with EDT
Date: Fri, 22 Mar 2019 18:43:15 -0700	[thread overview]
Message-ID: <20190323014313.ggcgnaq4fbsudxaw@ast-mbp.dhcp.thefacebook.com> (raw)
In-Reply-To: <20190322234019.229181-2-posk@google.com>

On Fri, Mar 22, 2019 at 04:40:19PM -0700, Peter Oskolkov wrote:
> Add a small test that shows how to shape a TCP flow in tc-bpf
> with EDT and ECN.
> 
> Signed-off-by: Peter Oskolkov <posk@google.com>
...
> +ip netns exec ${NS_SRC} bash -c "timeout ${TIMEOUT} dd if=/dev/zero \
> +	bs=1000 count=1000000 > /dev/tcp/${IP_DST}/9000 2>/dev/null"

just noticed this trick here and in lwt. Didn't know bash can do it. Nice!

Applied to bpf-next. thanks!


      reply	other threads:[~2019-03-23  1:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22 23:40 [PATCH bpf-next 1/2] bpf: make bpf_skb_ecn_set_ce callable from BPF_PROG_TYPE_SCHED_ACT Peter Oskolkov
2019-03-22 23:40 ` [PATCH bpf-next 2/2] selftests: bpf: tc-bpf flow shaping with EDT Peter Oskolkov
2019-03-23  1:43   ` Alexei Starovoitov [this message]

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=20190323014313.ggcgnaq4fbsudxaw@ast-mbp.dhcp.thefacebook.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=netdev@vger.kernel.org \
    --cc=posk@google.com \
    --cc=posk@posk.io \
    /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.