Re: [PATCH v2] AF_PACKET doesnt strip VLAN information

From: David Miller
Date: Mon Jul 20 2020 - 19:37:02 EST


From: Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2020 13:56:50 -0700

> It matters because the problem is generic, not just to the netvsc driver.
> For example, BPF programs and netfilter rules will see different packets
> when send is through AF_PACKET than they would see for sends from the
> kernel stack.
>
> Presenting uniform data to the lower layers makes sense.

The issue here is that for hyperv, vlan offloading is not a "may" but
a "must" and I've never understood it to have that meaning.

And I still haven't heard what is going to happen in Q-in-Q situations
even with the ugly hyperv driver hack that is currently under review.