Skip to content

Atomic flow dissector updates

Jakub Sitnicki bpf netdev 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 5 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Rebased onto recent bpf-next 63098555cfe0 ("Merge branch 'bpf-romap-known-scalars'").

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2flow_dissector: Allow updating the flow dissector program atomicallynet/core/flow_dissector.c+7 -30 replies
2/2selftests/bpf: Check that flow dissector can be re-attachedtools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c+127 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStanislav FomichevMartin KaFai Lau
1/2R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/2] Atomic flow dissector updates

This patch set changes how bpf(BPF_PROG_ATTACH) operates on flow dissector hook when there is already a program attached. After this change the user is allowed to update the program in a single syscall. Please see the first patch for rationale.

v1 -> v2:

- Don't use CHECK macro which expects BPF program run duration, which we don't track in attach/detach tests. Suggested by Stanislav Fomichev.

- Test re-attaching flow dissector in both root and non-root network namespace. Suggested by Stanislav Fomichev.

v2 -> v3:

- Rebased onto recent bpf-next 63098555cfe0 ("Merge branch 'bpf-romap-known-scalars'").

Jakub Sitnicki (2):
flow_dissector: Allow updating the flow dissector program atomically selftests/bpf: Check that flow dissector can be re-attached

 net/core/flow_dissector.c                     |  10 +-
 .../bpf/prog_tests/flow_dissector_reattach.c  | 127 ++++++++++++++++++
 2 files changed, 134 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
Signature · 1 line
2.20.1