Skip to content

add size field to sk_msg_md

John Fastabend netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: sockmap, metadata support for reporting size of msginclude/linux/skmsg.h include/uapi/linux/bpf.h net/core/filter.c+10 -02 replies
2/3bpf: add tools lib/include support sk_msg_md size fieldtools/include/uapi/linux/bpf.h+1 -00 replies
3/3bpf: sk_msg, add tests for size fieldtools/testing/selftests/bpf/test_verifier.c+13 -30 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin KaFai Lau
SeriesA-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] add size field to sk_msg_md

This adds a size field to the sk_msg_md data structure used by SK_MSG programs. Without this in the zerocopy case and in the copy case where multiple iovs are in use its difficult to know how much data can be pulled in. The normal method of reading data and data_end only give the current contiguous buffer. BPF programs can attempt to pull in extra data but have to guess if it exists. This can result in multiple "guesses" its much better if we know upfront the size of the sk_msg.

John Fastabend (3):
bpf: sockmap, metadata support for reporting length of message
bpf: add tools lib/include support sk_msg_md size field
bpf: sk_msg, add tests for size field

 include/linux/skmsg.h                       |  3 +++
 include/uapi/linux/bpf.h                    |  1 +
 net/core/filter.c                           |  6 ++++++
 tools/include/uapi/linux/bpf.h              |  1 +
 tools/testing/selftests/bpf/test_verifier.c | 16 +++++++++++++---
 5 files changed, 24 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4