Blame SOURCES/1008-don-t-kill-teamd-for-external-devices-rh1711952.patch

7b922c
From 2711e9be108063d9e269412c9026c10c63f1cda3 Mon Sep 17 00:00:00 2001
7b922c
From: Beniamino Galvani <bgalvani@redhat.com>
7b922c
Date: Sun, 19 May 2019 11:35:02 +0200
7b922c
Subject: [PATCH] team: don't kill teamd for external devices
7b922c
7b922c
The teamd instance must not be killed if the device was externally
7b922c
activated.
7b922c
7b922c
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/158
7b922c
https://bugzilla.redhat.com/show_bug.cgi?id=1693142
7b922c
(cherry picked from commit 008a4b4215dcce40345b2c372ffc8cfd0d388fa5)
7b922c
(cherry picked from commit bd113fe72eac3f609a6d05ab33ef52d6773c1985)
7b922c
---
7b922c
 src/devices/team/nm-device-team.c | 3 +++
7b922c
 1 file changed, 3 insertions(+)
7b922c
7b922c
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c
7b922c
index 287f4d1b1..4ae276dbf 100644
7b922c
--- a/src/devices/team/nm-device-team.c
7b922c
+++ b/src/devices/team/nm-device-team.c
7b922c
@@ -694,6 +694,9 @@ deactivate (NMDevice *device)
7b922c
 	NMDeviceTeam *self = NM_DEVICE_TEAM (device);
7b922c
 	NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE (self);
7b922c
 
7b922c
+	if (nm_device_sys_iface_state_is_external (device))
7b922c
+		return;
7b922c
+
7b922c
 	if (priv->teamd_pid || priv->tdc)
7b922c
 		_LOGI (LOGD_TEAM, "deactivation: stopping teamd...");
7b922c
 
7b922c
-- 
7b922c
2.20.1
7b922c