ifb: fix building without CONFIG_NET_CLS_ACT
Subsystems (2)
PATCH 1/1 ifb: fix building without CONFIG_NET_CLS_ACT
From: Arnd Bergmann <[email protected]>
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.
--- drivers/net/ifb.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ifb.c +2 -0
@@ -78,7 +78,9 @@ static void ifb_ri_tasklet(struct tasklet_struct *t)while ((skb =__skb_dequeue (&txp->tq)) !=NULL ) {/* Skip tc and netfilter to prevent redirection loop. */ skb->redirected =0 ; +#ifdef CONFIG_NET_CLS_ACT skb->tc_skip_classify =1 ; +#endif nf_skip_egress (skb, true);u64_stats_update_begin (&txp->tsync);
Signature · 1 line
2.29.2
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 10 lines · On Fri, 29 Oct 2021 13:30:51 +0200 you wrote:
From: Arnd Bergmann <[email protected]>
The driver no longer depends on this option, but it fails to build if it's disabled because the
skb->tc_skip_classifyis hidden behind an #ifdef:
drivers/net/ifb.c:81:8: error: no member named 'tc_skip_classify' in 'structsk_buff'skb->tc_skip_classify = 1;[...]
Here is the summary with links:
- [net-next] ifb: fix building without CONFIG_NET_CLS_ACT
https://git.kernel.org/netdev/net-next/c/7444d706be31
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html