Re: [PATCH v2] AF_PACKET doesnt strip VLAN information

From: Willem de Bruijn
Date: Sat Jul 18 2020 - 11:58:52 EST


On Sat, Jul 18, 2020 at 5:25 AM Sriram Krishnan <srirakr2@xxxxxxxxx> wrote:
>
> When an application sends with AF_PACKET and places a vlan header on
> the raw packet; then the AF_PACKET needs to move the tag into the skb
> so that it gets processed normally through the rest of the transmit
> path.
>
> This is particularly a problem on Hyper-V where the host only allows
> vlan in the offload info.

Shouldn't this be resolved in that driver, then?

Packet sockets are not the only way to introduce packets in the
kernel. Tuntap would be another.