netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/3] bpf, arm64: enable kfunc call
@ 2022-01-30  9:29 Hou Tao
  2022-01-30  9:29 ` [PATCH bpf-next v3 1/3] " Hou Tao
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Hou Tao @ 2022-01-30  9:29 UTC (permalink / raw)
  To: Daniel Borkmann
  Cc: Alexei Starovoitov, Martin KaFai Lau, Yonghong Song,
	Andrii Nakryiko, David S . Miller, Jakub Kicinski, John Fastabend,
	netdev, bpf, houtao1, Zi Shen Lim, Catalin Marinas, Will Deacon,
	Ard Biesheuvel, linux-arm-kernel, Hou Tao

Hi,

The simple patchset tries to enable kfunc call for arm64. Patch #1 just
overrides bpf_jit_supports_kfunc_call() to enable kfunc call, patch #2
unexports the subtests in ksyms_module.c to fix the confusion in test
output and patch #3 add a test in ksyms_module.c to ensure s32 is
sufficient for kfunc offset.

Change Log:
v3:
  * patch #2: newly-addded to unexport unnecessary subtests
  * patch #3: use kallsyms_find() instead of reimplementing it.
  * patch #3: ensure kfunc call is supported before checking
              whether s32 will be overflowed or not.

v2: https://lore.kernel.org/bpf/20220127071532.384888-1-houtao1@huawei.com/
  * add a test to check whether imm will be overflowed for kfunc call

v1: https://lore.kernel.org/bpf/20220119144942.305568-1-houtao1@huawei.com

Hou Tao (3):
  bpf, arm64: enable kfunc call
  selftests/bpf: do not export subtest as standalone test
  selftests/bpf: check whether s32 is sufficient for kfunc offset

 arch/arm64/net/bpf_jit_comp.c                 |  5 ++
 .../selftests/bpf/prog_tests/ksyms_module.c   | 46 ++++++++++++++++++-
 .../bpf/prog_tests/xdp_adjust_frags.c         |  6 ---
 .../bpf/prog_tests/xdp_adjust_tail.c          |  4 +-
 .../bpf/prog_tests/xdp_cpumap_attach.c        |  4 +-
 .../bpf/prog_tests/xdp_devmap_attach.c        |  2 +-
 6 files changed, 54 insertions(+), 13 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2022-02-04 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-30  9:29 [PATCH bpf-next v3 0/3] bpf, arm64: enable kfunc call Hou Tao
2022-01-30  9:29 ` [PATCH bpf-next v3 1/3] " Hou Tao
2022-02-04 15:42   ` Daniel Borkmann
2022-01-30  9:29 ` [PATCH bpf-next v3 2/3] selftests/bpf: do not export subtest as standalone test Hou Tao
2022-01-30  9:29 ` [PATCH bpf-next v3 3/3] selftests/bpf: check whether s32 is sufficient for kfunc offset Hou Tao
2022-02-04 15:40 ` [PATCH bpf-next v3 0/3] bpf, arm64: enable kfunc call patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).