Re: [PATCH] netfilter: nft_fwd_netdev: Fix CONFIG_NET_CLS_ACT=n build

From: Geert Uytterhoeven
Date: Fri Apr 10 2020 - 10:31:29 EST


On Fri, Apr 10, 2020 at 4:26 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> If CONFIG_NET_CLS_ACT=n:
>
> net/netfilter/nft_fwd_netdev.c: In function ânft_fwd_netdev_evalâ:
> net/netfilter/nft_fwd_netdev.c:32:10: error: âstruct sk_buffâ has no member named âtc_redirectedâ
> pkt->skb->tc_redirected = 1;
> ^~
> net/netfilter/nft_fwd_netdev.c:33:10: error: âstruct sk_buffâ has no member named âtc_from_ingressâ
> pkt->skb->tc_from_ingress = 1;
> ^~
>
> Fix this by protecting this code hunk with the appropriate #ifdef.
>
> Reported-by: noreply@xxxxxxxxxxxxxx
> Fixes: bcfabee1afd99484 ("netfilter: nft_fwd_netdev: allow to redirect to ifb via ingress")
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Please ignore, wrong patch.
Sorry for the mess.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds