On 7/5/23 11:19 AM, anton.ivanov@xxxxxxxxxxxxxxxxxx wrote:
From: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx> Ringbuf which was developed as a part of BPF infrastructure is a very nice, clean, simple and consise API to relay information from the kernel to userspace. It can be used in critical sections, interrupt handlers, etc. This patch exports ringbuf functionality to make it available to kernel modules. Demo: https://github.com/kot-begemot-uk/bpfnic-ng The demo ships to userspace hardware offload notifications without any mallocs, any workqueue and/or delayed work which is normally needed to handle these. As a result it is ~ 150 lines of code instead of the 500+ usually needed to achieve the same result. Signed-off-by: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>
Given this is only for out-of-tree code, we cannot merge this patch. Thanks, Daniel