public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/3] Add BPF_KFUNC macro for kfunc definitions
@ 2023-01-23 17:15 David Vernet
  2023-01-23 17:15 ` [PATCH bpf-next v2 1/3] bpf: Add BPF_KFUNC macro for defining kfuncs David Vernet
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: David Vernet @ 2023-01-23 17:15 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, linux-kernel, kernel-team, memxor

v2 of the patchset [0]

[0]: https://lore.kernel.org/bpf/Y7kCsjBZ%2FFrsWW%2Fe@maniforge.lan/T/

Changelog:
----------
v1 -> v2:
- Wrap entire function signature in BPF_KFUNC macro instead of using
  __bpf_kfunc tag (Kumar)
- Update all kfunc definitions to use this macro.
- Update kfuncs.rst documentation to describe and illustrate the macro.
- Also clean up a few small parts of kfuncs.rst, e.g. some grammar, and
  in general making it a bit tighter.

David Vernet (3):
  bpf: Add BPF_KFUNC macro for defining kfuncs
  bpf: Document usage of the new BPF_KFUNC macro
  bpf: Use BPF_KFUNC macro at all kfunc definitions

 Documentation/bpf/kfuncs.rst                  | 93 ++++++++++---------
 include/linux/btf.h                           | 10 ++
 kernel/bpf/helpers.c                          | 44 ++++-----
 kernel/cgroup/rstat.c                         |  4 +-
 kernel/kexec_core.c                           |  3 +-
 kernel/trace/bpf_trace.c                      | 18 ++--
 net/bpf/test_run.c                            | 64 ++++++-------
 net/ipv4/tcp_bbr.c                            | 16 ++--
 net/ipv4/tcp_cong.c                           | 10 +-
 net/ipv4/tcp_cubic.c                          | 12 +--
 net/ipv4/tcp_dctcp.c                          | 12 +--
 net/netfilter/nf_conntrack_bpf.c              | 34 +++----
 net/netfilter/nf_nat_bpf.c                    | 12 +--
 net/xfrm/xfrm_interface_bpf.c                 | 14 +--
 .../selftests/bpf/bpf_testmod/bpf_testmod.c   |  3 +-
 15 files changed, 165 insertions(+), 184 deletions(-)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-01-31 17:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-23 17:15 [PATCH bpf-next v2 0/3] Add BPF_KFUNC macro for kfunc definitions David Vernet
2023-01-23 17:15 ` [PATCH bpf-next v2 1/3] bpf: Add BPF_KFUNC macro for defining kfuncs David Vernet
2023-01-23 17:15 ` [PATCH bpf-next v2 2/3] bpf: Document usage of the new BPF_KFUNC macro David Vernet
2023-01-23 17:15 ` [PATCH bpf-next v2 3/3] bpf: Use BPF_KFUNC macro at all kfunc definitions David Vernet
2023-01-23 18:33   ` Alexei Starovoitov
2023-01-23 18:48     ` David Vernet
2023-01-23 18:54       ` Alexei Starovoitov
2023-01-23 19:01         ` David Vernet
2023-01-23 19:04         ` Daniel Borkmann
2023-01-23 21:00           ` Jonathan Corbet
2023-01-24  0:54             ` David Vernet
2023-01-24 14:50               ` Jonathan Corbet
2023-01-24 16:20                 ` David Vernet
2023-01-31 15:15                   ` Alan Maguire
2023-01-31 15:44                     ` David Vernet
2023-01-31 17:30                       ` Alexei Starovoitov
2023-01-23 19:01   ` kernel test robot
2023-01-23 19:12   ` kernel test robot
2023-01-24  7:15   ` Christoph Hellwig
2023-01-24 14:15     ` David Vernet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox