From: Florian Westphal <fw@strlen.de>
To: "Гаврилов Игорь" <iggorok@yandex.ua>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: nf_conntrack_count is increasing
Date: Wed, 9 Dec 2015 13:02:16 +0100 [thread overview]
Message-ID: <20151209120216.GA11515@breakpoint.cc> (raw)
In-Reply-To: <3947861449660306@web9g.yandex.ru>
Гаврилов Игорь <iggorok@yandex.ua> wrote:
> if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb), proto, &tuple)) \
> goto fallback; \
> zone.id = NF_CT_DEFAULT_ZONE_ID; \
> zone.dir = NF_CT_DEFAULT_ZONE_DIR; \
> \
> thash = nf_conntrack_find_get(dev_net(skb->dev), &zone, &tuple);\
> if (!thash) goto fallback; \
> ct = nf_ct_tuplehash_to_ctrack(thash); \
> If nf_ct_get() fails to retrieve information from sk_buff, which is obvious on ingress, I use nf_ct_get_tuplepr() and nf_conntrack_find_get() like in net/sched/act_connmark.c, but I have encountered a problem - after a while traffic stops forwarding with the message "nf_conntrack: table is full" and conntrack -F doesn't help - nf_conntrack_count remains large - about 200k. Can anyone advise me how to fix this issue?
You need to nf_ct_put(ct) once you're done with ct.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-12-09 12:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 11:25 nf_conntrack_count is increasing Гаврилов Игорь
2015-12-09 12:02 ` Florian Westphal [this message]
2015-12-09 12:23 ` Гаврилов Игорь
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151209120216.GA11515@breakpoint.cc \
--to=fw@strlen.de \
--cc=iggorok@yandex.ua \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.