summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2023-03-02 10:44:40 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2023-03-02 16:51:16 +0100
commit24deb0715908c0bb807cd3117d277e1495d47fb4 (patch)
tree902cf0c7c8b4c47ee45aa089f9871d3ad483762f
parent86b922695f18566132980bd23516038b6ca4c0f4 (diff)
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.
-rw-r--r--src/core/devices/nm-device.c4
1 files 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,