[Devel] [RFC 49/54] nf_conntrack_core: fix CONFIG_VE=n build
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:49 MSK 2026
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
net/netfilter/nf_conntrack_core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index c767762e19f4..fb3b667f5fc3 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -1695,9 +1695,13 @@ __nf_conntrack_alloc(struct net *net,
if (!conntrack_gc_work.early_drop)
conntrack_gc_work.early_drop = true;
atomic_dec(&cnet->count);
+#ifdef CONFIG_VE
net_veboth_ratelimited(KERN_WARNING "VE%s: "
"nf_conntrack table full, dropping packet\n",
ve_name(net->owner_ve));
+#else
+ net_warn_ratelimited("nf_conntrack: table full, dropping packet\n");
+#endif
return ERR_PTR(-ENOMEM);
}
}
--
2.54.0
More information about the Devel
mailing list