Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1257444 > unrolled thread
| Started by | Richard Weinberger <richard.weinberger@gmail.com> |
|---|---|
| First post | 2015-10-27 23:40 +0100 |
| Last post | 2015-10-30 23:40 +0100 |
| Articles | 6 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Richard Weinberger <richard.weinberger@gmail.com> |
|---|---|
| Date | 2015-10-27 23:40 +0100 |
| Subject | Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qol4m-2Aj-11@gated-at.bofh.it> |
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? -- Thanks, //richard -- 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/
[toc] | [next] | [standalone]
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Date | 2015-10-28 19:10 +0100 |
| Subject | RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qoDkB-67B-1@gated-at.bofh.it> |
| In reply to | #1257444 |
DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUmljaGFyZCBXZWluYmVy Z2VyIFttYWlsdG86cmljaGFyZC53ZWluYmVyZ2VyQGdtYWlsLmNvbV0NCj4gU2VudDogVHVlc2Rh eSwgT2N0b2JlciAyNywgMjAxNSA2OjM2IFBNDQo+IFRvOiBEYXZpZCBNaWxsZXIgPGRhdmVtQGRh dmVtbG9mdC5uZXQ+DQo+IENjOiBIYWl5YW5nIFpoYW5nIDxoYWl5YW5nekBtaWNyb3NvZnQuY29t Pjsgb2xhZkBhZXBmbGUuZGU7IEdyZWcgS3JvYWgtDQo+IEhhcnRtYW4gPGdyZWdAa3JvYWguY29t PjsgbmV0ZGV2QHZnZXIua2VybmVsLm9yZzsNCj4gamFzb3dhbmdAcmVkaGF0LmNvbTsgZHJpdmVy ZGV2LWRldmVsQGxpbnV4ZHJpdmVycHJvamVjdC5vcmc7IExLTUwNCj4gPGxpbnV4LWtlcm5lbEB2 Z2VyLmtlcm5lbC5vcmc+DQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0ggbmV0LW5leH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zb21lIGd1eXMgYWJvdXQgdXNlcm1vZGVo ZWxwZXIgYWJ1c2VzIEkgY2FtZSBhY3Jvc3MNCj4gdGhpcyBnZW0uDQo+IE1haW5saW5lIHN0aWxs IGNvbnRhaW5zIHRoYXQgIi9ldGMvaW5pdC5kL25ldHdvcmsgcmVzdGFydCIgY29kZS4NCj4gSGFp eWFuZywgY2FyZSB0byBjbGVhbnVwPw0KDQpJIHdpbGwgY2xlYW4gdXAgdGhlIHVzZXJtb2RlIGhl bHBlciBzb29uLg0KDQpUaGFua3MsDQotIEhhaXlhbmcNCg0K -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Date | 2015-10-29 20:10 +0100 |
| Subject | RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qp0Kd-4f9-17@gated-at.bofh.it> |
| In reply to | #1257444 |
DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUmljaGFyZCBXZWluYmVy Z2VyIFttYWlsdG86cmljaGFyZC53ZWluYmVyZ2VyQGdtYWlsLmNvbV0NCj4gU2VudDogVHVlc2Rh eSwgT2N0b2JlciAyNywgMjAxNSA2OjM2IFBNDQo+IFRvOiBEYXZpZCBNaWxsZXIgPGRhdmVtQGRh dmVtbG9mdC5uZXQ+DQo+IENjOiBIYWl5YW5nIFpoYW5nIDxoYWl5YW5nekBtaWNyb3NvZnQuY29t Pjsgb2xhZkBhZXBmbGUuZGU7IEdyZWcgS3JvYWgtDQo+IEhhcnRtYW4gPGdyZWdAa3JvYWguY29t PjsgbmV0ZGV2QHZnZXIua2VybmVsLm9yZzsgamFzb3dhbmdAcmVkaGF0LmNvbTsNCj4gZHJpdmVy ZGV2LW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bA0KPiBo YXZlIGENCj4gPiByZWFsIG1lc3Mgb24gb3VyIGhhbmRzLg0KPiANCj4gU29ycnkgZm9yIGRpZ2dp bmcgdXAgdGhpcyBvbGQgdGhyZWFkLg0KPiBXaGlsZSB0YWxraW5nIHdpdGggc29tZSBndXlzIGFi b3V0IHVzZXJtb2RlaGVscGVyIGFidXNlcyBJIGNhbWUgYWNyb3NzDQo+IHRoaXMgZ2VtLg0KPiBN YWlubGluZSBzdGlsbCBjb250YWlucyB0aGF0ICIvZXRjL2luaXQuZC9uZXR3b3JrIHJlc3RhcnQi IGNvZGUuDQo+IEhhaXlhbmcsIGNhcmUgdG8gY2xlYW51cD8NCg0KSGkgUmljaGFyZCBhbmQgb3Ro ZXJzLA0KDQpUaGFua3MgZm9yIHRoZSByZW1pbmRlci4gSSB3aWxsIGNsZWFuIHVwIHRoZSB1c2Vy bW9kZSBoZWxwZXIuDQoNCkRvIHlvdSBoYXZlIHN1Z2dlc3Rpb25zIG9mIHRyaWdnZXIgREhDUCBy ZWZyZXNoIGZyb20ga2VybmVsIG1vZGU/IEFueSANCnNhbXBsZSBjb2RlIGluIHRoZSBleGlzdGlu ZyBrZXJuZWwgY29kZT8NCg0KVGhhbmtzLA0KLSBIYWl5YW5nDQoNCg== -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| Date | 2015-10-30 12:00 +0100 |
| Subject | Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qpfzA-4Mx-13@gated-at.bofh.it> |
| In reply to | #1258956 |
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. -- Vitaly -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Richard Weinberger <richard@nod.at> |
|---|---|
| Date | 2015-10-30 23:20 +0100 |
| Subject | Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qpqbE-30S-5@gated-at.bofh.it> |
| In reply to | #1259395 |
Am 30.10.2015 um 23:03 schrieb Haiyang Zhang: > > >> -----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. Can't you propagate the event to userspace and let it take an appropriate action? Thanks, //richard -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Date | 2015-10-30 23:40 +0100 |
| Subject | RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event |
| Message-ID | <qpqbE-30S-7@gated-at.bofh.it> |
| In reply to | #1259395 |
> -----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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web