[External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the new Kernel-version upgrade requirements.

Stephen Hemminger stephen at networkplumber.org
Fri Jan 5 18:41:27 CET 2024


On Fri, 5 Jan 2024 15:11:22 +0000
Madhuker Mythri <madhuker.mythri at oracle.com> wrote:

> By using this " bpf_skb_load_bytes_relative()" helper function we can directly retrieve the Network header data fields, so we no need to check for L2-header VLAN presence.
> 
> Thanks,
> Madhuker.

No problem, the vlan code was already broken. The kernel offloads vlan header to skb
but who ever wrote the original did not know that is what happens in modern kernels.


More information about the dev mailing list