ifb: fix building without CONFIG_NET_CLS_ACT
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Oct 2021 11:30:51 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:04 +0000 (19:16 +0100)
commit013fa93c79bd97fc2956797e1ed8e57f3e28e1bc
tree89adb2d77f4917093308b401b6451401a8bdce64
parentea531d52fa0843eeffd8d9c09ed236f627e12361
ifb: fix building without CONFIG_NET_CLS_ACT

commit 7444d706be31753f65052c7f6325fc8470cc1789 upstream.

The driver no longer depends on this option, but it fails to
build if it's disabled because the skb->tc_skip_classify is
hidden behind an #ifdef:

drivers/net/ifb.c:81:8: error: no member named 'tc_skip_classify' in 'struct sk_buff'
                skb->tc_skip_classify = 1;

Use the same #ifdef around the assignment.

Fixes: 046178e726c2 ("ifb: Depend on netfilter alternatively to tc")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ifb.c