netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf 0/2] netfilter: nat: fix regressions introduced by rhashtable conversion
@ 2016-11-16 14:13 Florian Westphal
  2016-11-16 14:13 ` [PATCH nf 1/2] netfilter: nat: fix cmp return value Florian Westphal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Westphal @ 2016-11-16 14:13 UTC (permalink / raw)
  To: netfilter-devel; +Cc: herbert

These two patches address bugs added when I converted the nat bysource hash
to rhashtable.

First patch fixes object comparision, second patch converts
nat bysource to the rhlist interface, we have to deal with identical
source identities (distinct connections sharing same ip/port source pair).

Unfortunately the rhashlist interface isn't available in 4.8, so the question
is how to address patch #2 for -stable.

One way would be to revert the rhashtable conversion, the other one
would be to just set .insecure_elasticity in the rhashtable params.

The latter should work fine, as we do NOT need to identify the individual
duplicate keys.

 include/net/netfilter/nf_conntrack.h |    2 -
 net/netfilter/nf_nat_core.c          |   49 +++++++++++++++++++++--------------
 2 files changed, 31 insertions(+), 20 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-24 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 14:13 [PATCH nf 0/2] netfilter: nat: fix regressions introduced by rhashtable conversion Florian Westphal
2016-11-16 14:13 ` [PATCH nf 1/2] netfilter: nat: fix cmp return value Florian Westphal
2016-11-16 14:13 ` [PATCH nf 2/2] netfilter: nat: switch to new rhlist interface Florian Westphal
2016-11-24 12:53 ` [PATCH nf 0/2] netfilter: nat: fix regressions introduced by rhashtable conversion Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).