Re: [PATCH net-next] net: core: fix compile error inside flow_dissector due to new dsa callback

From: David Miller
Date: Thu Aug 10 2017 - 12:17:00 EST


From: John Crispin <john@xxxxxxxxxxx>
Date: Thu, 10 Aug 2017 10:09:03 +0200

> The following error was introduced by
> commit 43e665287f93 ("net-next: dsa: fix flow dissection")
> due to a missing #if guard
>
> net/core/flow_dissector.c: In function '__skb_flow_dissect':
> net/core/flow_dissector.c:448:18: error: 'struct net_device' has no member named 'dsa_ptr'
> ops = skb->dev->dsa_ptr->tag_ops;
> ^
> make[3]: *** [net/core/flow_dissector.o] Error 1
>
> Signed-off-by: John Crispin <john@xxxxxxxxxxx>

Applied, thanks.