From 09ee0c92050593b4d1122260af722d6d84d7082c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 18 Oct 2017 19:01:50 +0200 Subject: [PATCH] device: reset MTU when slave's MTU changes --- src/devices/nm-device.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 9a5a40136..9e2e67fba 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7210,6 +7210,14 @@ _set_mtu (NMDevice *self, guint32 mtu) priv->mtu = mtu; _notify (self, PROP_MTU); + + if (priv->master) { + /* changing the MTU of a slave, might require the master to reset + * it's MTU. Note that the master usually cannot set a MTU larger + * then the slave's. Hence, when the slave increases the MTU, + * master might want to retry setting the MTU. */ + nm_device_commit_mtu (priv->master); + } } static void