[External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.
Stephen Hemminger
stephen at networkplumber.org
Tue Jan 16 17:43:45 CET 2024
On Sat, 13 Jan 2024 17:50:19 +0000
Madhuker Mythri <madhuker.mythri at oracle.com> wrote:
> With the original code BPF verifier throws error, due to undefined array access and thus could failed to load the BPF instructions onto the Kernel.
> For safe execution on the Kernel, the array access with such undefined value throws error.
>
> So, came up with this loop which has Max-queues as limit.
>
> Thanks,
> Madhuker,
The result of x & 15 is always going to be less than 16.
The Oracle BPF verifier modifications are junk if it can figure that out.
More information about the dev
mailing list