On Fri, 5 Jan 2024 15:11:22 +0000 Madhuker Mythri <madhuker.myt...@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.