From: David Miller <davem@davemloft.net>
To: brakmo@fb.com
Cc: netdev@vger.kernel.org, kernel-team@fb.com, bmatheny@fb.com,
ast@fb.com, daniel@iogearbox.net, dsa@cumulusnetworks.com
Subject: Re: [RFC PATCH net-next 13/15] bpf: Sample BPF program to set initial cwnd
Date: Tue, 13 Jun 2017 17:31:48 -0400 (EDT) [thread overview]
Message-ID: <20170613.173148.122804103598927680.davem@davemloft.net> (raw)
In-Reply-To: <20170613180004.3008403-14-brakmo@fb.com>
From: Lawrence Brakmo <brakmo@fb.com>
Date: Tue, 13 Jun 2017 11:00:02 -0700
> +SEC("sockops")
> +int bpf_iw(struct __sk_buff *skb)
> +{
> + struct bpf_socket_ops *skops = (struct bpf_socket_ops *) skb;
> + char fmt1[] = "BPF command: %d\n";
> + char fmt2[] = " Returning %d\n";
> + int op;
> + int rv = 0;
> + int rwnd_init = 40;
> + int iw = 40;
> + int bufsize = 1500000;
> +
> + // For testing purposes, only execute rest of BPF program
> + // if neither port numberis 55601
Local variable ordering and C++ comments.
next prev parent reply other threads:[~2017-06-13 21:31 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 17:59 RFC PATCH net-next 00/15] bpf: Add new SOCKET_OPS program type Lawrence Brakmo
2017-06-13 17:59 ` [RFC PATCH net-next 01/15] net: BPF support for socket ops Lawrence Brakmo
2017-06-13 21:12 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 02/15] bpf: program to load socketops BPF programs Lawrence Brakmo
2017-06-13 17:59 ` [RFC PATCH net-next 03/15] bpf: Support for per connection SYN/SYN-ACK RTOs Lawrence Brakmo
2017-06-13 17:59 ` [RFC PATCH net-next 04/15] bpf: Sample bpf program to set " Lawrence Brakmo
2017-06-13 21:13 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 05/15] bpf: Support for setting initial receive window Lawrence Brakmo
2017-06-13 21:14 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 06/15] bpf: Sample bpf program to set initial window Lawrence Brakmo
2017-06-13 21:14 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 07/15] bpf: Add setsockopt helper function to bpf Lawrence Brakmo
2017-06-13 21:16 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 08/15] bpf: Add TCP connection BPF callbacks Lawrence Brakmo
2017-06-13 17:59 ` [RFC PATCH net-next 09/15] bpf: Sample BPF program to set buffer sizes Lawrence Brakmo
2017-06-13 21:17 ` David Miller
2017-06-13 17:59 ` [RFC PATCH net-next 10/15] bpf: Add support for changing congestion control Lawrence Brakmo
2017-06-13 21:17 ` David Miller
2017-06-13 18:00 ` [RFC PATCH net-next 11/15] bpf: Sample BPF program to set " Lawrence Brakmo
2017-06-13 21:31 ` David Miller
2017-06-13 18:00 ` [RFC PATCH net-next 12/15] bpf: Adds support for setting initial cwnd Lawrence Brakmo
2017-06-13 18:00 ` [RFC PATCH net-next 13/15] bpf: Sample BPF program to set " Lawrence Brakmo
2017-06-13 21:31 ` David Miller [this message]
2017-06-13 18:00 ` [RFC PATCH net-next 14/15] bpf: Adds support for setting sndcwnd clamp Lawrence Brakmo
2017-06-13 18:00 ` [RFC PATCH net-next 15/15] bpf: Sample bpf program to set " Lawrence Brakmo
2017-06-13 21:32 ` 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=20170613.173148.122804103598927680.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ast@fb.com \
--cc=bmatheny@fb.com \
--cc=brakmo@fb.com \
--cc=daniel@iogearbox.net \
--cc=dsa@cumulusnetworks.com \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
/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).