Skip to content

net: skbuff: skb bitfield compaction - bpf

Jakub Kicinski bpf netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 1 replySuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: skbuff: rename __pkt_vlan_present_offset to __mono_tc_offsetinclude/linux/skbuff.h net/core/filter.c tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c+9 -90 repliesApplied
2/3net: skbuff: reorder bytes 2 and 3 of the bitfieldinclude/linux/skbuff.h+10 -100 repliesApplied
3/3net: skbuff: move the fields BPF cares about directly next to the offset markerinclude/linux/skbuff.h tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c+13 -130 repliesApplied

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/3] net: skbuff: skb bitfield compaction - bpf

I'm trying to make more of the sk_buff bits optional. Move the BPF-accessed bits a little - because they must be at coding-time-constant offsets they must precede any optional bit. While at it clean up the naming a bit.

v1: https://lore.kernel.org/all/[email protected]/

Jakub Kicinski (3):
net: skbuff: rename __pkt_vlan_present_offset to __mono_tc_offset
net: skbuff: reorder bytes 2 and 3 of the bitfield
net: skbuff: move the fields BPF cares about directly next to the
offset marker

 include/linux/skbuff.h                        | 36 +++++++++----------
 net/core/filter.c                             |  8 ++---
 .../selftests/bpf/prog_tests/ctx_rewrite.c    | 14 ++++----
 3 files changed, 29 insertions(+), 29 deletions(-)
Signature · 1 line
2.39.2