Re: [PATCH bpf] selftests/bpf: Re-add kfunc declarations to qdisc tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 30, 2025 at 6:35 AM Viktor Malik <vmalik@xxxxxxxxxx> wrote:
>
> BPF selftests compilation fails on systems with CONFIG_NET_SCH_BPF=n.
> The reason is that qdisc-related kfuncs are included via vmlinux.h but
> when qdisc is disabled, they are not defined and do not appear in
> vmlinux.h.

Yes and that's expected behavior. It's not a bug.
That's why we have CONFIG_NET_SCH_BPF=y in
selftests/bpf/config
and CI picks it up automatically.

If we add these kfuncs to bpf_qdisc_common.h where would we
draw the line when the kfuncs should be added or not ?

Currently we don't add any new kfuncs, since they all
should be in vmlinux.h

--
pw-bot: cr





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux