Re: unregister_netdevice: waiting for DEV to become free (2)

From: Eric Dumazet
Date: Sat Apr 27 2019 - 19:52:39 EST




On 4/27/19 3:33 PM, Tetsuo Handa wrote:
>
> I'm waiting for davem why it is safe to move the dst entry from
> "a device to unregister" to "a loopback device in that namespace".
> I'm waiting for an explanation how the dst entry which was moved to
> "a loopback device in that namespace" is released (i.e. what the
> expected shutdown sequence is).

The most probable explanation is that we make sure the loopback device
is the last one to be dismantled at netns deletion,
and this would obviously happen after all dst have been released.