netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: Lawrence Brakmo <brakmo@fb.com>, netdev <netdev@vger.kernel.org>
Cc: Kernel Team <kernel-team@fb.com>, Blake Matheny <bmatheny@fb.com>,
	Alexei Starovoitov <ast@fb.com>,
	David Ahern <dsa@cumulusnetworks.com>
Subject: Re: [PATCH net-next v5 01/16] bpf: BPF support for sock_ops
Date: Sat, 01 Jul 2017 01:31:42 +0200	[thread overview]
Message-ID: <5956DF5E.6000803@iogearbox.net> (raw)
In-Reply-To: <20170630200706.4183158-2-brakmo@fb.com>

On 06/30/2017 10:06 PM, Lawrence Brakmo wrote:
> Created a new BPF program type, BPF_PROG_TYPE_SOCK_OPS, and a corresponding
> struct that allows BPF programs of this type to access some of the
> socket's fields (such as IP addresses, ports, etc.). It uses the
> existing bpf cgroups infrastructure so the programs can be attached per
> cgroup with full inheritance support. The program will be called at
> appropriate times to set relevant connections parameters such as buffer
> sizes, SYN and SYN-ACK RTOs, etc., based on connection information such
> as IP addresses, port numbers, etc.
>
> Alghough there are already 3 mechanisms to set parameters (sysctls,
> route metrics and setsockopts), this new mechanism provides some
> distinct advantages. Unlike sysctls, it can set parameters per
> connection. In contrast to route metrics, it can also use port numbers
> and information provided by a user level program. In addition, it could
> set parameters probabilistically for evaluation purposes (i.e. do
> something different on 10% of the flows and compare results with the
> other 90% of the flows). Also, in cases where IPv6 addresses contain
> geographic information, the rules to make changes based on the distance
> (or RTT) between the hosts are much easier than route metric rules and
> can be global. Finally, unlike setsockopt, it oes not require
> application changes and it can be updated easily at any time.
[...]
>
> Signed-off-by: Lawrence Brakmo <brakmo@fb.com>

Acked-by: Daniel Borkmann <daniel@iogearbox.net>

  reply	other threads:[~2017-06-30 23:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30 20:06 [PATCH net-next v5 00/16] bpf: Adding support for sock_ops Lawrence Brakmo
2017-06-30 20:06 ` [PATCH net-next v5 01/16] bpf: BPF " Lawrence Brakmo
2017-06-30 23:31   ` Daniel Borkmann [this message]
2017-06-30 20:06 ` [PATCH net-next v5 02/16] bpf: program to load and attach sock_ops BPF progs Lawrence Brakmo
2017-06-30 23:33   ` Daniel Borkmann
2017-06-30 20:06 ` [PATCH net-next v5 03/16] bpf: Support for per connection SYN/SYN-ACK RTOs Lawrence Brakmo
2017-06-30 20:06 ` [PATCH net-next v5 04/16] bpf: Sample bpf program to set " Lawrence Brakmo
2017-06-30 23:34   ` Daniel Borkmann
2017-06-30 20:06 ` [PATCH net-next v5 05/16] bpf: Support for setting initial receive window Lawrence Brakmo
2017-06-30 20:06 ` [PATCH net-next v5 06/16] bpf: Sample bpf program to set initial window Lawrence Brakmo
2017-06-30 23:35   ` Daniel Borkmann
2017-06-30 20:06 ` [PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf Lawrence Brakmo
2017-07-01  0:01   ` Daniel Borkmann
2017-07-01  1:45     ` Lawrence Brakmo
2017-07-02  6:51   ` kbuild test robot
2017-07-02 20:31     ` Lawrence Brakmo
2017-06-30 20:06 ` [PATCH net-next v5 08/16] bpf: Add TCP connection BPF callbacks Lawrence Brakmo
2017-06-30 20:06 ` [PATCH net-next v5 09/16] bpf: Sample BPF program to set buffer sizes Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 10/16] bpf: Add support for changing congestion control Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 11/16] bpf: Sample BPF program to set " Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 12/16] bpf: Adds support for setting initial cwnd Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 13/16] bpf: Sample BPF program to set " Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 14/16] bpf: Adds support for setting sndcwnd clamp Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 15/16] bpf: Sample bpf program to set " Lawrence Brakmo
2017-06-30 20:07 ` [PATCH net-next v5 16/16] bpf: update tools/include/uapi/linux/bpf.h Lawrence Brakmo

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=5956DF5E.6000803@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=ast@fb.com \
    --cc=bmatheny@fb.com \
    --cc=brakmo@fb.com \
    --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).