ifb: Depend on netfilter alternatively to tc

commit 046178e726c2977d686ba5e07105d5a6685c830e upstream.

IFB originally depended on NET_CLS_ACT for traffic redirection.
But since v4.5, that may be achieved with NFT_FWD_NETDEV as well.

Fixes: 39e6dea28a ("netfilter: nf_tables: add forward expression to the netdev family")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: <stable@vger.kernel.org> # v4.5+: bcfabee1af: netfilter: nft_fwd_netdev: allow to redirect to ifb via ingress
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Lukas Wunner
2021-10-26 07:15:32 +02:00
committed by Greg Kroah-Hartman
parent c7400e2ec8
commit c044f34ca2

View File

@@ -148,7 +148,7 @@ config NET_FC
config IFB config IFB
tristate "Intermediate Functional Block support" tristate "Intermediate Functional Block support"
depends on NET_CLS_ACT depends on NET_ACT_MIRRED || NFT_FWD_NETDEV
select NET_REDIRECT select NET_REDIRECT
help help
This is an intermediate driver that allows sharing of This is an intermediate driver that allows sharing of