netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4.9.y 0/2] netfilter: nat fix soft lockup when most ports are used
@ 2022-02-03 12:32 Florian Westphal
  2022-02-03 12:32 ` [PATCH 4.9.y 1/2] netfilter: nat: remove l4 protocol port rovers Florian Westphal
  2022-02-03 12:32 ` [PATCH 4.9.y 2/2] netfilter: nat: limit port clash resolution attempts Florian Westphal
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Westphal @ 2022-02-03 12:32 UTC (permalink / raw)
  To: stable; +Cc: netfilter-devel, Florian Westphal

First patch removes old rovers, they are inherently racy
and cause packet drops/delays.

Second patch avoids iterating entire range of ports: It takes way
too long when most tuples are in use.

First patch is slightly mangled: nf_nat_proto_udplite.c doesn't exist
anymore upstream and nf_nat_proto_common.c needs minor adjustment
in context.

Florian Westphal (2):
  netfilter: nat: remove l4 protocol port rovers
  netfilter: nat: limit port clash resolution attempts

 include/net/netfilter/nf_nat_l4proto.h |  2 +-
 net/netfilter/nf_nat_proto_common.c    | 36 ++++++++++++++++++--------
 net/netfilter/nf_nat_proto_dccp.c      |  5 +---
 net/netfilter/nf_nat_proto_sctp.c      |  5 +---
 net/netfilter/nf_nat_proto_tcp.c       |  5 +---
 net/netfilter/nf_nat_proto_udp.c       |  5 +---
 net/netfilter/nf_nat_proto_udplite.c   |  5 +---
 7 files changed, 31 insertions(+), 32 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-02-03 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 12:32 [PATCH 4.9.y 0/2] netfilter: nat fix soft lockup when most ports are used Florian Westphal
2022-02-03 12:32 ` [PATCH 4.9.y 1/2] netfilter: nat: remove l4 protocol port rovers Florian Westphal
2022-02-03 12:32 ` [PATCH 4.9.y 2/2] netfilter: nat: limit port clash resolution attempts Florian Westphal

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).