]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: allow act_ct to be built without NF_NAT
authorXin Long <lucien.xin@gmail.com>
Fri, 18 Nov 2022 21:33:03 +0000 (16:33 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Nov 2022 11:16:55 +0000 (12:16 +0100)
commit6dfa2489267c399a71eaf6ce91b019367711f6f7
tree1d52448febd6ff2ddbc057fa4bfdaf22f76b5bc6
parentb8393b1f12837f11be6e97532edb24edcca2e21a
net: sched: allow act_ct to be built without NF_NAT

In commit 16835faf30f7 ("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: 16835faf30f7 ("net/sched: Make NET_ACT_CT depends on NF_NAT")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/b6386f28d1ba34721795fb776a91cbdabb203447.1668807183.git.lucien.xin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/Kconfig