Skip to content

bpf: Follow up on bpf __sk_buff->tstamp

Martin KaFai Lau bpf netdev 1 version 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

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5bpf: net: Remove TC_AT_INGRESS_OFFSET and SKB_MONO_DELIVERY_TIME_OFFSET macroinclude/linux/skbuff.h net/core/filter.c+12 -120 repliesApplied
2/5bpf: Simplify insn rewrite on BPF_READ __sk_buff->tstampnet/core/filter.c+11 -100 repliesApplied
3/5bpf: Simplify insn rewrite on BPF_WRITE __sk_buff->tstampnet/core/filter.c+14 -120 repliesApplied
4/5bpf: Remove BPF_SKB_DELIVERY_TIME_NONE and rename s/delivery_time_/tstamp_/include/linux/filter.h include/uapi/linux/bpf.h net/core/filter.c +1 more+77 -930 repliesApplied
5/5bpf: selftests: Update tests after s/delivery_time/tstamp/ change in bpf.htools/testing/selftests/bpf/progs/test_tc_dtime.c+19 -190 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/5] bpf: Follow up on bpf __sk_buff->tstamp

This set is a follow up on the bpf side based on discussion [0].

Patch 1 is to remove some skbuff macros that are used in bpf filter.c

Patch 2 and 3 are to simplify the bpf insn rewrite on __sk_buff->tstamp.

Patch 4 is to simplify the bpf uapi by modeling the __sk_buff->tstamp and __sk_buff->tstamp_type (was delivery_time_type) the same as its kernel counter part skb->tstamp and skb->mono_delivery_time.

Patch 5 is to adjust the bpf selftests due to changes in patch 4.

[0]: https://lore.kernel.org/bpf/[email protected]/

Martin KaFai Lau (5):
bpf: net: Remove TC_AT_INGRESS_OFFSET and
SKB_MONO_DELIVERY_TIME_OFFSET macro
bpf: Simplify insn rewrite on BPF_READ __sk_buff->tstamp
bpf: Simplify insn rewrite on BPF_WRITE __sk_buff->tstamp
bpf: Remove BPF_SKB_DELIVERY_TIME_NONE and rename
s/delivery_time_/tstamp_/
bpf: selftests: Update tests after s/delivery_time/tstamp/ change in
bpf.h

 include/linux/filter.h                        |   2 +-
 include/linux/skbuff.h                        |  10 +-
 include/uapi/linux/bpf.h                      |  40 +++---
 net/core/filter.c                             | 133 ++++++++----------
 tools/include/uapi/linux/bpf.h                |  40 +++---
 .../selftests/bpf/progs/test_tc_dtime.c       |  38 ++---
 6 files changed, 125 insertions(+), 138 deletions(-)
Signature · 1 line
2.30.2