I’m trying out the new kTLS support in FreeBSD. On amd64 I can load the kernel module, but on arm64 it fails with kldload ktls_ocf kldload: can't load ktls_ocf: No such file or directory And dmesg shows link_elf: symbol sysctl___kern_ipc_tls_stats undefined
Commit f9322ff6efa508df8368e31e3c4880cff11b0e23 which adds KERN_TLS to GENERIC on arm64 hasn't been merged to stable/13. You can likely just add KERN_TLS and rebuild your kernel and have it work. Probably that commit should be MFC'd to stable/13.
Thanks, I was under the impression that with exception of certain hardware related differences both amd64/arm64 kernels would have the same options. I’ll compile a custom kernel for now and wait to see the option to be added in e.g. 13.3
> I was under the impression that with exception of certain hardware related > differences both amd64/arm64 kernels would have the same options. In general they should. I'll take a look at this one.
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bf5c45448720e20208d3e8f2b563e5234c28159a commit bf5c45448720e20208d3e8f2b563e5234c28159a Author: Allan Jude <allanjude@FreeBSD.org> AuthorDate: 2021-01-28 20:48:37 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-04-21 13:46:35 +0000 Enable KERN_TLS by default in ARM64 GENERIC PR: 270759 Sponsored-by: Ampere Computing Submitted-by: Klara, Inc. (cherry picked from commit f9322ff6efa508df8368e31e3c4880cff11b0e23) sys/arm64/conf/GENERIC | 1 + 1 file changed, 1 insertion(+)