Re: [PATCH] core: fix bug with ignore-carrier and master/slave devices (rh #1083521)
- From: poma <pomidorabelisima gmail com>
- To: Dan Williams <dcbw redhat com>
- Cc: Network Manager <networkmanager-list gnome org>
- Subject: Re: [PATCH] core: fix bug with ignore-carrier and master/slave devices (rh #1083521)
- Date: Wed, 02 Apr 2014 18:12:42 +0200
On 02.04.2014 16:36, Dan Williams wrote:
On Wed, 2014-04-02 at 09:18 -0500, Dan Williams wrote:
Even ignore-carrier devices need to be aware of carrier-up events so
they can continue DHCP when the link comes up. They just ignore all
carrier-down events.
Acked by thaller & danw on IRC, pushed to master. Does this fix the
issue for you?
Dan
Yeah.
Tested with git commit 42499b5.
PASSED!
Thanks Dan & Dan. :)
---
src/devices/nm-device.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 7e2f034..0906da3 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -1004,19 +1004,17 @@ carrier_changed (NMDevice *device, gboolean carrier)
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (device);
if (!nm_device_get_managed (device))
return;
nm_device_recheck_available_connections (device);
- if (priv->ignore_carrier) {
- /* Ignore all carrier-off, and ignore carrier-on on connected devices */
- if (!carrier || priv->state > NM_DEVICE_STATE_DISCONNECTED)
- return;
- }
+ /* ignore-carrier devices ignore all carrier-down events */
+ if (priv->ignore_carrier && !carrier)
+ return;
if (nm_device_is_master (device)) {
/* Bridge/bond/team carrier does not affect its own activation,
* but when carrier comes on, if there are slaves waiting,
* it will restart them.
*/
if (!carrier)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]