Re: [PATCH] net: Check the expect of skb->data at mac header

From: David Miller
Date: Mon Aug 24 2020 - 18:49:07 EST


From: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Date: Thu, 20 Aug 2020 08:28:22 -0400

> skb_mpls_push() and skb_mpls_pop() expect skb->data at mac header. Check
> this assumption or we would get wrong mac_header and network_header.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Both openvswitch and act_mpls.c seem to adhere to this constraint.

I don't see real value to these extra checks, sorry.