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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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    |  6 ++--
 3 files changed, 25 insertions(+), 25 deletions(-)

-- 
2.39.2




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux