Patch "net: sched: allow act_ct to be built without NF_NAT" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: sched: allow act_ct to be built without NF_NAT

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-sched-allow-act_ct-to-be-built-without-nf_nat.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d77d2d9f438e47554d1f9d0d3bac30fc268c5bc1
Author: Xin Long <lucien.xin@xxxxxxxxx>
Date:   Fri Nov 18 16:33:03 2022 -0500

    net: sched: allow act_ct to be built without NF_NAT
    
    [ Upstream commit 8427fd100c7b7793650e212a81e42f1cf124613d ]
    
    In commit f11fe1dae1c4 ("net/sched: Make NET_ACT_CT depends on NF_NAT"),
    it fixed the build failure when NF_NAT is m and NET_ACT_CT is y by
    adding depends on NF_NAT for NET_ACT_CT. However, it would also cause
    NET_ACT_CT cannot be built without NF_NAT, which is not expected. This
    patch fixes it by changing to use "(!NF_NAT || NF_NAT)" as the depend.
    
    Fixes: f11fe1dae1c4 ("net/sched: Make NET_ACT_CT depends on NF_NAT")
    Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx>
    Link: https://lore.kernel.org/r/b6386f28d1ba34721795fb776a91cbdabb203447.1668807183.git.lucien.xin@xxxxxxxxx
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/sched/Kconfig b/net/sched/Kconfig
index 1e8ab4749c6c..4662a6ce8a7e 100644
--- a/net/sched/Kconfig
+++ b/net/sched/Kconfig
@@ -976,7 +976,7 @@ config NET_ACT_TUNNEL_KEY
 
 config NET_ACT_CT
 	tristate "connection tracking tc action"
-	depends on NET_CLS_ACT && NF_CONNTRACK && NF_NAT && NF_FLOW_TABLE
+	depends on NET_CLS_ACT && NF_CONNTRACK && (!NF_NAT || NF_NAT) && NF_FLOW_TABLE
 	help
 	  Say Y here to allow sending the packets to conntrack module.
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux