]> git.baikalelectronics.ru Git - kernel.git/commit
ifb: fix building without CONFIG_NET_CLS_ACT
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Oct 2021 11:30:51 +0000 (13:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 13:01:11 +0000 (14:01 +0100)
commit985574b9c11b3ae64a81a9f956e64eb42df0594a
tree7057a0dba3af510b9876579c505663b0f9ffcc41
parent96bd7bd661a476acb0ee7beba808f55ed7954f44
ifb: fix building without CONFIG_NET_CLS_ACT

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: 177454281b72 ("ifb: Depend on netfilter alternatively to tc")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c