Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1259828
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Date | 2015-10-30 23:40 +0100 |
| Message-ID | <qpqbE-30S-7@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <nwf8n-4SY-25@gated-at.bofh.it> <nwiSC-2b6-17@gated-at.bofh.it> <qol4m-2Aj-11@gated-at.bofh.it> <qp0Kd-4f9-17@gated-at.bofh.it> <qpfzA-4Mx-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com] > Sent: Friday, October 30, 2015 6:56 AM > To: Haiyang Zhang <haiyangz@microsoft.com> > Cc: Richard Weinberger <richard.weinberger@gmail.com>; David Miller > <davem@davemloft.net>; olaf@aepfle.de; jasowang@redhat.com; driverdev- > devel@linuxdriverproject.org; LKML <linux-kernel@vger.kernel.org>; > netdev@vger.kernel.org > Subject: Re: [PATCH net-next] hyperv: Add handler for > RNDIS_STATUS_NETWORK_CHANGE event > > Haiyang Zhang <haiyangz@microsoft.com> writes: > > >> -----Original Message----- > >> From: Richard Weinberger [mailto:richard.weinberger@gmail.com] > >> Sent: Tuesday, October 27, 2015 6:36 PM > >> To: David Miller <davem@davemloft.net> > >> Cc: Haiyang Zhang <haiyangz@microsoft.com>; olaf@aepfle.de; Greg > Kroah- > >> Hartman <greg@kroah.com>; netdev@vger.kernel.org; jasowang@redhat.com; > >> driverdev-devel@linuxdriverproject.org; LKML <linux- > >> kernel@vger.kernel.org> > >> Subject: Re: [PATCH net-next] hyperv: Add handler for > >> RNDIS_STATUS_NETWORK_CHANGE event > >> > >> On Mon, Jun 23, 2014 at 10:10 PM, David Miller <davem@davemloft.net> > >> wrote: > >> > From: Haiyang Zhang <haiyangz@microsoft.com> > >> > Date: Mon, 23 Jun 2014 16:09:59 +0000 > >> > > >> >> So, what's the equivalent or similar command to "network restart" > on > >> SLES12? Could > >> >> you update the command line for the usermodehelper when porting > this > >> patch to SLES > >> >> 12? > >> > > >> > No, you are not going to keep the usermodehelper invocation in your > >> driver > >> > please remove it. It is absolutely inappropriate, and I strictly > do > >> not want > >> > to keep it in there because other people will copy it and then > we'll > >> have a > >> > real mess on our hands. > >> > >> Sorry for digging up this old thread. > >> While talking with some guys about usermodehelper abuses I came > across > >> this gem. > >> Mainline still contains that "/etc/init.d/network restart" code. > >> Haiyang, care to cleanup? > > > > Hi Richard and others, > > > > Thanks for the reminder. I will clean up the usermode helper. > > > > Do you have suggestions of trigger DHCP refresh from kernel mode? Any > > sample code in the existing kernel code? > > > > I think it's wrong to call dhcp refresh from kernel. What happens when > we reconnect normal hardware adapter to another network? Link goes down > and then up and userspace is supposed to react accordingly. I think we > should emulate something similar for RNDIS_STATUS_NETWORK_CHANGE. When link is down physically for a few seconds, the DHCP will automatically refresh. I will add code to emulate this. There were some discussions around this and other possibilities previously... I agree emulating what happens with physically plug/unplug a cable is a reasonable way to trigger the DHCP refresh. Thanks, - Haiyang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Richard Weinberger <richard.weinberger@gmail.com> - 2015-10-27 23:40 +0100
RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Haiyang Zhang <haiyangz@microsoft.com> - 2015-10-28 19:10 +0100
RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Haiyang Zhang <haiyangz@microsoft.com> - 2015-10-29 20:10 +0100
Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Vitaly Kuznetsov <vkuznets@redhat.com> - 2015-10-30 12:00 +0100
Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Richard Weinberger <richard@nod.at> - 2015-10-30 23:20 +0100
RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event Haiyang Zhang <haiyangz@microsoft.com> - 2015-10-30 23:40 +0100
csiph-web