Re: [PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

From: David Miller
Date: Fri Jul 31 2020 - 19:42:53 EST


From: linmiaohe <linmiaohe@xxxxxxxxxx>
Date: Thu, 30 Jul 2020 19:02:36 +0800

> From: Miaohe Lin <linmiaohe@xxxxxxxxxx>
>
> When we don't care about vlan depth, we could pass NULL instead of the
> address of a unused local variable to skb_network_protocol() as a param.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Applied to net-next, thanks.