Skip to content

bpf tcp save syn set/get sockoptions

Nikita V. Shirokov netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 1 replyApplied

Changes in v3 from the cover letter

- make patch series public

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2new options for bpf_(set|get)sockoptnet/core/filter.c+21 -40 replies
2/2new sample bpf progsamples/bpf/Makefile samples/bpf/tcp_tos_reflect_kern.c+88 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 bpf-next 0/2] bpf tcp save syn set/get sockoptions

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
Signature · 1 line
2.17.1