From 24deb0715908c0bb807cd3117d277e1495d47fb4 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 2 Mar 2023 10:44:40 +0100 Subject: [PATCH] device: reconfigure ethtool and tc also for assumed devices We need to set the ethtool and tc properties for assumed devices, since they go through a normal activation. External devices should not be touched by NM. --- src/core/devices/nm-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index c0cdd733d9..62db9a6328 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -9760,10 +9760,10 @@ activate_stage2_device_config(NMDevice *self) nm_device_state_changed(self, NM_DEVICE_STATE_CONFIG, NM_DEVICE_STATE_REASON_NONE); - if (!nm_device_sys_iface_state_is_external_or_assume(self)) + if (!nm_device_sys_iface_state_is_external(self)) _ethtool_state_set(self); - if (!nm_device_sys_iface_state_is_external_or_assume(self)) { + if (!nm_device_sys_iface_state_is_external(self)) { if (!priv->tc_committed && !tc_commit(self)) { _LOGW(LOGD_DEVICE, "failed applying traffic control rules"); nm_device_state_changed(self,