mbox series

[bpf-next,0/3] bpf: Add hwtstamp field for the sockops prog

Message ID 20221105001713.1347122-1-martin.lau@linux.dev (mailing list archive)
Headers show
Series bpf: Add hwtstamp field for the sockops prog | expand

Message

Martin KaFai Lau Nov. 5, 2022, 12:17 a.m. UTC
From: Martin KaFai Lau <martin.lau@kernel.org>

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.

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 +
 .../bpf/prog_tests/tcp_hdr_options.c          |  6 ++-
 .../bpf/progs/test_misc_tcp_hdr_options.c     |  4 ++
 5 files changed, 41 insertions(+), 10 deletions(-)