OpenVZ Forum


Home » Mailing lists » Devel » [patch 0/3][netns] fix and wipeout timewait sockets
Re: [patch 3/3][netns] remove timewait sockets at cleanup [message #20844 is a reply to message #20649] Wed, 26 September 2007 19:22 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Daniel Lezcano <dlezcano@fr.ibm.com> writes:

> From: Daniel Lezcano <dlezcano@fr.ibm.com>
>
> Denis Lunev spotted that if we take a reference to the network namespace
> with the timewait sockets, we will need to wait for their expiration to
> have the network namespace freed. This is a waste of time, the timewait
> sockets are for avoiding to receive a duplicate packet from the network,
> if the network namespace is freed, the network stack is removed, so no
> chance to receive any packets from the outside world.
>
> This patchset remove/destroy the timewait sockets when the
> network namespace is freed.

This code is in the wrong place.  Please do the register_net_subsys
thing so we can keep the code in  net/ipv4/inet_timewait_sock.c

This code just need to be an exit method.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] netns: Simplify the network namespace list locking rules.
Next Topic: [patch 0/3][netns] several fixes/enhancements
Goto Forum:
  


Current Time: Fri Sep 12 20:52:24 GMT 2025

Total time taken to generate the page: 0.08834 seconds