[Devel] [PATCH RHEL7 COMMIT] ve/netfilter: ve_printk for "nf_conntrack: table full"
Konstantin Khorenko
khorenko at odin.com
Mon May 18 01:29:57 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.1
------>
commit 8782918c418820d5127afa4a5db74c9b3eac3b82
Author: Vasily Averin <vvs at odin.com>
Date: Mon May 18 12:29:57 2015 +0400
ve/netfilter: ve_printk for "nf_conntrack: table full"
port of diff-ve-printk-conntrack-tables-full from rh6-based kernels
"nf_conntrack: table full, dropping packet" message
should be visible both in CT and on HN and
should contain CTID for reading simplicity.
https://bugzilla.openvz.org/show_bug.cgi?id=2940
Signed-off-by: Vasily Averin <vvs at openvz.org>
Acked-by: Kirill Tkhai <ktkhai at odin.com>
---
net/netfilter/nf_conntrack_core.c | 4 +++-
net/netfilter/nf_conntrack_expect.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 495b859..017c755 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -696,7 +696,9 @@ __nf_conntrack_alloc(struct net *net, u16 zone,
unlikely(atomic_read(&net->ct.count) > ct_max)) {
if (!early_drop(net, hash_bucket(hash, net))) {
atomic_dec(&net->ct.count);
- net_warn_ratelimited("nf_conntrack: table full, dropping packet\n");
+ net_veboth_ratelimited(KERN_WARNING "VE%u: "
+ "nf_conntrack table full, dropping packet\n",
+ net->owner_ve->veid);
return ERR_PTR(-ENOMEM);
}
}
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c
index d80db92..bfa95fd 100644
--- a/net/netfilter/nf_conntrack_expect.c
+++ b/net/netfilter/nf_conntrack_expect.c
@@ -408,7 +408,9 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
}
if (net->ct.expect_count >= init_net.ct.expect_max) {
- net_warn_ratelimited("nf_conntrack: expectation table full\n");
+ net_veboth_ratelimited(KERN_WARNING "VE%u "
+ "nf_conntrack: expectation table full\n",
+ net->owner_ve->veid);
ret = -EMFILE;
}
out:
More information about the Devel
mailing list