mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 04:10:43 +02:00
device: reset MTU when slave's MTU changes
This commit is contained in:
parent
667aed8aeb
commit
09ee0c9205
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue