Re: [PATCH bpf-next v5 2/6] bpf: Add syscall common attrs support for xdp link_create
From: Jakub Kicinski
Date: Tue Oct 27 2026 - 19:10:47 EST
On Mon, 26 Oct 2026 23:49:43 +0800 Leon Hwang wrote:
> With the syscall common attrs support for link_create, add syscall common
> attrs support for xdp link_create in order to report the invalid target
> ifindex error and the underlying driver's error.
>
> Instead of passing bpf log to bpf_xdp_link_attach(), pass an extack to
> receive the underlying driver's error message. If pass bpf log to
> bpf_xdp_link_attach(), it will introduce bpf_verifier.h dependency for
> net/core/dev.c, which is not acceptable for maintainability.
>
> Signed-off-by: Leon Hwang <leon.hwang@xxxxxxxxx>
Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx>
Thanks!