Skip to content

Commit 7444d70

Browse files
arndbdavem330
authored andcommitted
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: 046178e ("ifb: Depend on netfilter alternatively to tc") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb5dbf2 commit 7444d70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ifb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ static void ifb_ri_tasklet(struct tasklet_struct *t)
7878
while ((skb = __skb_dequeue(&txp->tq)) != NULL) {
7979
/* Skip tc and netfilter to prevent redirection loop. */
8080
skb->redirected = 0;
81+
#ifdef CONFIG_NET_CLS_ACT
8182
skb->tc_skip_classify = 1;
83+
#endif
8284
nf_skip_egress(skb, true);
8385

8486
u64_stats_update_begin(&txp->tsync);

0 commit comments

Comments
 (0)