Thread (10 messages) flat view 10 messages, 3 authors, 2017-07-10

Re: [PATCH net] ip[6]: don't register inet[6]dev when dev is down

From: Cong Wang <hidden>
Date: 2017-07-05 22:44:02

On Wed, Jul 5, 2017 at 8:57 AM, Nicolas Dichtel
[off-list ref] wrote:
When a device changes from one netns to another, it's first unregistered,
then the netns reference is updated and the dev is registered in the new
netns. Thus, when a slave moves to another netns, it is first
unregistered. This triggers a NETDEV_UNREGISTER event which is caught by
the bonding driver. The driver calls bond_release(), which calls
dev_set_mtu() and thus triggers NETDEV_CHANGEMTU (the device is still in
the old netns).
I think in this special case it is meaningless to send
NETDEV_CHANGEMTU, because the device is dying within
its old netns, who still cares about its mtu change?

Something like the attached patch...

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help