* [PATCH nf-next v2] ipvs: use nf_ct_kill helper
@ 2016-08-03 13:21 Florian Westphal
2016-08-03 18:37 ` Julian Anastasov
2016-08-12 10:24 ` Pablo Neira Ayuso
0 siblings, 2 replies; 4+ messages in thread
From: Florian Westphal @ 2016-08-03 13:21 UTC (permalink / raw)
To: netfilter-devel; +Cc: lvs-devel, Florian Westphal
Once timer is removed from nf_conn struct we cannot open-code
the removal sequence anymore.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
V2: keep debug messages around.
net/netfilter/ipvs/ip_vs_nfct.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_nfct.c b/net/netfilter/ipvs/ip_vs_nfct.c
index f04fd8d..fc230d9 100644
--- a/net/netfilter/ipvs/ip_vs_nfct.c
+++ b/net/netfilter/ipvs/ip_vs_nfct.c
@@ -281,13 +281,10 @@ void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp)
h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple);
if (h) {
ct = nf_ct_tuplehash_to_ctrack(h);
- /* Show what happens instead of calling nf_ct_kill() */
- if (del_timer(&ct->timeout)) {
- IP_VS_DBG(7, "%s: ct=%p, deleted conntrack timer for tuple="
+ if (nf_ct_kill(ct)) {
+ IP_VS_DBG(7, "%s: ct=%p, deleted conntrack for tuple="
FMT_TUPLE "\n",
__func__, ct, ARG_TUPLE(&tuple));
- if (ct->timeout.function)
- ct->timeout.function(ct->timeout.data);
} else {
IP_VS_DBG(7, "%s: ct=%p, no conntrack timer for tuple="
FMT_TUPLE "\n",
--
2.7.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH nf-next v2] ipvs: use nf_ct_kill helper
2016-08-03 13:21 [PATCH nf-next v2] ipvs: use nf_ct_kill helper Florian Westphal
@ 2016-08-03 18:37 ` Julian Anastasov
2016-08-12 10:24 ` Pablo Neira Ayuso
1 sibling, 0 replies; 4+ messages in thread
From: Julian Anastasov @ 2016-08-03 18:37 UTC (permalink / raw)
To: Florian Westphal; +Cc: netfilter-devel, lvs-devel, Simon Horman
Hello,
On Wed, 3 Aug 2016, Florian Westphal wrote:
> Once timer is removed from nf_conn struct we cannot open-code
> the removal sequence anymore.
>
> Signed-off-by: Florian Westphal <fw@strlen.de>
Looks good to me,
Acked-by: Julian Anastasov <ja@ssi.bg>
> ---
> V2: keep debug messages around.
>
> net/netfilter/ipvs/ip_vs_nfct.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/net/netfilter/ipvs/ip_vs_nfct.c b/net/netfilter/ipvs/ip_vs_nfct.c
> index f04fd8d..fc230d9 100644
> --- a/net/netfilter/ipvs/ip_vs_nfct.c
> +++ b/net/netfilter/ipvs/ip_vs_nfct.c
> @@ -281,13 +281,10 @@ void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp)
> h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple);
> if (h) {
> ct = nf_ct_tuplehash_to_ctrack(h);
> - /* Show what happens instead of calling nf_ct_kill() */
> - if (del_timer(&ct->timeout)) {
> - IP_VS_DBG(7, "%s: ct=%p, deleted conntrack timer for tuple="
> + if (nf_ct_kill(ct)) {
> + IP_VS_DBG(7, "%s: ct=%p, deleted conntrack for tuple="
> FMT_TUPLE "\n",
> __func__, ct, ARG_TUPLE(&tuple));
> - if (ct->timeout.function)
> - ct->timeout.function(ct->timeout.data);
> } else {
> IP_VS_DBG(7, "%s: ct=%p, no conntrack timer for tuple="
> FMT_TUPLE "\n",
> --
> 2.7.3
Regards
--
Julian Anastasov <ja@ssi.bg>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nf-next v2] ipvs: use nf_ct_kill helper
2016-08-03 13:21 [PATCH nf-next v2] ipvs: use nf_ct_kill helper Florian Westphal
2016-08-03 18:37 ` Julian Anastasov
@ 2016-08-12 10:24 ` Pablo Neira Ayuso
2016-08-12 11:21 ` Simon Horman
1 sibling, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2016-08-12 10:24 UTC (permalink / raw)
To: Florian Westphal; +Cc: netfilter-devel, lvs-devel, horms
On Wed, Aug 03, 2016 at 03:21:28PM +0200, Florian Westphal wrote:
> Once timer is removed from nf_conn struct we cannot open-code
> the removal sequence anymore.
@Simon and other IPVS folks: I'm going to take this patch since
Florian needs this merged for follow up patches.
So I'm dealing with this small one.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH nf-next v2] ipvs: use nf_ct_kill helper
2016-08-12 10:24 ` Pablo Neira Ayuso
@ 2016-08-12 11:21 ` Simon Horman
0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-08-12 11:21 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Florian Westphal, netfilter-devel, lvs-devel
Hi Pablo,
On Fri, Aug 12, 2016 at 12:24:43PM +0200, Pablo Neira Ayuso wrote:
> On Wed, Aug 03, 2016 at 03:21:28PM +0200, Florian Westphal wrote:
> > Once timer is removed from nf_conn struct we cannot open-code
> > the removal sequence anymore.
>
> @Simon and other IPVS folks: I'm going to take this patch since
> Florian needs this merged for follow up patches.
>
> So I'm dealing with this small one.
Sure, please do.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-12 11:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03 13:21 [PATCH nf-next v2] ipvs: use nf_ct_kill helper Florian Westphal
2016-08-03 18:37 ` Julian Anastasov
2016-08-12 10:24 ` Pablo Neira Ayuso
2016-08-12 11:21 ` Simon Horman
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.