Re: [PATCH] conntrack: Reduce conntrack count in nf_conntrack_free()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick McHardy
Date: Wednesday, March 25, 2009 - 6:39 am

Eric Dumazet wrote:

In case of xt_connlimit, it seems fine to just take a reference.
In case of ctnetlink, keeping the unreferenced lookup under the
lock seems fine. We unfortunately have to export some internals
like nf_conntrack lock for ctnetlink anyways, so I don't think
it would be worth to change it to take references and unexport
the lookup function.


Are you sure this is enough? An entry might have been reused and added
to the same chain I think, so I think we need to recheck the tuple.


Ah I see, the hash comparison above is only an optimization?

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] conntrack: Reduce conntrack count in nf_conntr ..., Patrick McHardy, (Wed Mar 25, 6:39 am)