netfilter: nf_nat_masquerade: don't block rtnl lock
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | netfilter: nf_nat_masquerade: make async masq_inet6_event handling genericnet/ | +75 | 0 replies | |
| 2/2 | netfilter: nf_nat_masquerade: defer conntrack walk to work queuenet/ | +24 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Martin Zaharinov |
|---|---|
| 1/2 | |
| 2/2 | Reported-and-tested-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH nf 0/2] netfilter: nf_nat_masquerade: don't block rtnl lock
nf_nat_masquerade registers conntrack notifiers to early-expire conntracks that have been using the downed device/removed address.
With large number of disappearing devices (ppp), iterating the table for every notification blocks the rtnl lock for multiple seconds.
This change unconditionally defers the walk to the system work queue so that rtnl lock is not blocked longer than needed.
This is not a regression, the notifier and cleanup walk have existed since the functionality was added more than 20 years ago.
Florian Westphal (2):
netfilter: nf_nat_masquerade: make async masq_inet6_event handling
generic
netfilter: nf_nat_masquerade: defer conntrack walk to work queue
net/netfilter/nf_nat_masquerade.c | 168 +++++++++++++++++------------- 1 file changed, 97 insertions(+), 71 deletions(-)
Signature · 1 line
2.32.0