net: core: fix compile error inside flow_dissector due to new dsa callback
authorJohn Crispin <john@phrozen.org>
Thu, 10 Aug 2017 08:09:03 +0000 (10:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 16:16:05 +0000 (09:16 -0700)
commit2d5716456404a1ba097d46770f82f23a2457a873
treeabb69a031500832028d9afe201b94b392227fa8a
parent7e1ecbcf79b2fdc7349da1bb90d6dadad1f9ac89
net: core: fix compile error inside flow_dissector due to new dsa callback

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@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c