Le 30/05/2016 12:11, Vincent Bernat a écrit : > ❦ 30 mai 2016 11:23 CEST, Nicolas Dichtel <nicolas.dich...@6wind.com> : > >>> @@ -466,6 +462,10 @@ static int veth_newlink(struct net *src_net, struct >>> net_device *dev, >>> >>> priv = netdev_priv(peer); >>> rcu_assign_pointer(priv->peer, dev); >>> + >>> + err = rtnl_configure_link(peer, ifmp); >>> + if (err < 0) >>> + goto err_configure_peer; > >> You should fix the error path. 'unregister_netdevice(dev)' is missing. > > I am sending another patch to fix that. I am quite unsure if I do the > right thing here. > A less intrusive fix is to call 'rtmsg_ifinfo(RTM_NEWLINK, peer, ~0U, GFP_KERNEL);' a the end of veth_newlink().
- [PATCH] veth: delay peer link configuration after interfa... Vincent Bernat
- Re: [PATCH] veth: delay peer link configuration afte... Nicolas Dichtel
- [PATCH] veth: delay peer link configuration afte... Vincent Bernat
- Re: [PATCH] veth: delay peer link configurat... Vincent Bernat
- [PATCH] veth: delay peer link configuration afte... Vincent Bernat
- Re: [PATCH] veth: delay peer link configurat... Nicolas Dichtel
- Re: [PATCH] veth: delay peer link configuration ... Vincent Bernat
- Re: [PATCH] veth: delay peer link configurat... Nicolas Dichtel
- Re: [PATCH] veth: delay peer link config... Vincent Bernat
- Re: [PATCH] veth: delay peer link c... Nicolas Dichtel
- [net v3] veth: advertise peer l... Vincent Bernat
- Re: [net v3] veth: advertis... Vincent Bernat
- Re: [net v3] veth: advertis... Nicolas Dichtel
- Re: [net v3] veth: advertis... Vincent Bernat
- Re: [net v3] veth: advertis... Nicolas Dichtel
- Re: [net v3] veth: advertis... Lance Richardson
- Re: [net v3] veth: advertis... Nicolas Dichtel
- Re: [net v3] veth: advertis... Lance Richardson