Skip to content

bpf: Add hwtstamp field for the sockops prog

Martin KaFai Lau 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 2 repliesApplied 3/3
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fixed the btf_dump selftest which depends on the last member of 'struct bpf_sock_ops'.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: Add hwtstamp field for the sockops proginclude/uapi/linux/bpf.h net/core/filter.c tools/include/uapi/linux/bpf.h+33 -80 repliesApplied
2/3selftests/bpf: Fix incorrect ASSERT in the tcp_hdr_options testtools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c+2 -21 replyApplied
3/3selftests/bpf: Test skops->skb_hwtstamptools/testing/selftests/bpf/prog_tests/btf_dump.c tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c+8 -20 repliesApplied

Reviews trailers per patch

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

PatchYonghong SongWang Yufen
SeriesA-b
1/3
2/3A-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/3] bpf: Add hwtstamp field for the sockops prog

From: Martin KaFai Lau <[email protected]>

The bpf-tc prog has already been able to access the skb_hwtstamps(skb)->hwtstamp. This set extends the same hwtstamp access to the sockops prog.

v2:
- Fixed the btf_dump selftest which depends on the last member of 'struct bpf_sock_ops'.

Martin KaFai Lau (3):
bpf: Add hwtstamp field for the sockops prog selftests/bpf: Fix incorrect ASSERT in the tcp_hdr_options test selftests/bpf: Test skops->skb_hwtstamp

 include/uapi/linux/bpf.h                      |  1 +
 net/core/filter.c                             | 39 +++++++++++++++----
 tools/include/uapi/linux/bpf.h                |  1 +
 .../selftests/bpf/prog_tests/btf_dump.c       |  4 +-
 .../bpf/prog_tests/tcp_hdr_options.c          |  6 ++-
 .../bpf/progs/test_misc_tcp_hdr_options.c     |  4 ++
 6 files changed, 43 insertions(+), 12 deletions(-)
Signature · 1 line
2.30.2