Skip to content

bpf-timestamp: support rx side

Jason Xing bpf netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 5 repliesIn review
  2. v16 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6bpf: Add bpf_ktime_get_real_ns() kfunckernel/bpf/helpers.c+6 -00 replies
2/6net: export sock_disable_timestamp() declarationinclude/net/sock.h net/core/sock.c+2 -10 replies
3/6bpf: support bpf_setsockopt for bpf timestamping rx featureinclude/net/sock.h include/uapi/linux/bpf.h net/core/filter.c+15 -31 reply
4/6bpf: add BPF_SOCK_OPS_TSTAMP_RCV_CB callbackinclude/net/sock.h include/uapi/linux/bpf.h net/core/sock.c +1 more+34 -00 replies
5/6bpf: enable bpf timestamping rx in TCP layernet/ipv4/tcp.c+10 -02 replies
6/6selftests/bpf: Add RX latency tests for bpf timestampingtools/testing/selftests/bpf/prog_tests/net_timestamping.c tools/testing/selftests/bpf/progs/net_timestamping.c+105 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/6] bpf-timestamp: support rx side

From: Jason Xing <[email protected]>

Previously the series[1] has already supported tx side for BPF timestamping, now it's time to support rx side.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=68b92ac494eb

---
v2

1. support tcp rx zc case (Stan)
2. add if-statements for ASSERT_TRUE (sashiko)

Jason Xing (6):
bpf: Add bpf_ktime_get_real_ns() kfunc
net: export sock_disable_timestamp() declaration
bpf: support bpf_setsockopt for bpf timestamping rx feature
bpf: add BPF_SOCK_OPS_TSTAMP_RCV_CB callback
bpf: enable bpf timestamping rx in TCP layer selftests/bpf: Add RX latency tests for bpf timestamping

 include/net/sock.h                            | 12 +++-
 include/uapi/linux/bpf.h                      | 10 ++-
 kernel/bpf/helpers.c                          |  6 ++
 net/core/filter.c                             |  8 +++
 net/core/sock.c                               | 20 +++++-
 net/ipv4/tcp.c                                | 10 +++
 tools/include/uapi/linux/bpf.h                |  5 ++
 .../bpf/prog_tests/net_timestamping.c         | 71 ++++++++++++++++++-
 .../selftests/bpf/progs/net_timestamping.c    | 35 +++++++++
 9 files changed, 172 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.7