From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] Hyperv: Trigger DHCP renew after host hibernation Date: Fri, 8 Aug 2014 09:28:42 -0700 Message-ID: <20140808092842.5602afe1@haswell.linuxnetplumber.net> References: <53CCD6F2.6020909@nod.at> <20140721091851.GA28171@aepfle.de> <20140721.143225.2040366896972949930.davem@davemloft.net> <20140808033220.GB10503@kroah.com> <20140808134549.GD4427@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "driverdev-devel@linuxdriverproject.org\" , Haiyang Zhang , LKML , Thomas Shao , "@osuosl.org, "olaf@aepfle.de" , Yue@osuosl.org, Richard Weinberger , "netdev@vger.kernel.org" , "jasowang@redhat.com" , OSTC DEV <" , David Miller "@osuosl.org>, Zhang@osuosl.org To: Greg KH Return-path: In-Reply-To: <20140808134549.GD4427@kroah.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: driverdev-devel-bounces@linuxdriverproject.org List-Id: netdev.vger.kernel.org On Fri, 8 Aug 2014 06:45:49 -0700 Greg KH wrote: > On Fri, Aug 08, 2014 at 08:11:20AM +0000, Dexuan Cui wrote: > > > From: Greg KH [mailto:gregkh@linuxfoundation.org] > > > Sent: Friday, August 8, 2014 11:32 AM > > > > Hi Richard and all, > > > > > > > > IMO the most feasible and need-the-least-change solution may be: > > > > the hyperv network VSC driver passes the event > > > > RNDIS_STATUS_NETWORK_CHANGE to the udev daemon? > > > > > > > > In this way, every distro only needs to add a udev rule, which should > > > > be simple. > > > > > > No, don't do that, again, act like any other network device, drop the > > > link and bring it up when it comes back. > > > > > > greg k-h > > > > Hi Greg, > > Thanks for the comment! > > > > Do you mean tearing down the net device and re-creating it (by > > register_netdev() and unregister_netdev)? > > No, don't you have link-detect for your network device? Toggle that, I > thought patches to do this were posted a while ago... > > But if you really want to tear the whole network device down and then > back up again, sure, that would also work. > > good luck, > > greg k-h > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Call netif_carrier_off then netif_carrier_on to toggle the link detect state of netdevice.