From: "Nikita V. Shirokov" <tehnerd@fb•com>
To: ast@kernel•org, brakmo@fb•com, daniel@iogearbox•net
Cc: netdev@vger•kernel.org, "Nikita V. Shirokov" <tehnerd@fb•com>
Subject: [PATCH v3 bpf-next 0/2] bpf tcp save syn set/get sockoptions
Date: Thu, 30 Aug 2018 07:51:52 -0700 [thread overview]
Message-ID: <20180830145154.1128593-1-tehnerd@fb.com> (raw)
adding supprot for two new bpf's tcp sockopts:
TCP_SAVE_SYN (set) and TCP_SAVED_SYN (get)
this would allow for tcp-bpf program to build some logic based on fields from
ingress syn packet (e.g. doing tcp's tos/tclass reflection (see sample prog))
and do it transparently from userspace program point of view
v2->v3:
- make patch series public
v1->v2:
- adding proper SPDX license
Nikita V. Shirokov (2):
new options for bpf_(set|get)sockopt
new sample bpf prog
net/core/filter.c | 25 +++++++--
samples/bpf/Makefile | 1 +
samples/bpf/tcp_tos_reflect_kern.c | 87 ++++++++++++++++++++++++++++++
3 files changed, 109 insertions(+), 4 deletions(-)
create mode 100644 samples/bpf/tcp_tos_reflect_kern.c
--
2.17.1
next reply other threads:[~2018-08-30 19:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 14:51 Nikita V. Shirokov [this message]
2018-08-30 14:51 ` [PATCH v3 bpf-next 1/2] new options for bpf_(set|get)sockopt Nikita V. Shirokov
2018-08-30 14:51 ` [PATCH v3 bpf-next 2/2] new sample bpf prog Nikita V. Shirokov
2018-08-31 3:00 ` [PATCH v3 bpf-next 0/2] bpf tcp save syn set/get sockoptions Alexei Starovoitov
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=20180830145154.1128593-1-tehnerd@fb.com \
--to=tehnerd@fb$(echo .)com \
--cc=ast@kernel$(echo .)org \
--cc=brakmo@fb$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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