NetworkManager/src/devices
Thomas Haller 4ca3002b86 device: don't set MTU of device unless explicitly configured
Since commit 2b51d3967 "device: merge branch 'th/device-mtu-bgo777251'",
we always set the MTU for certain device types during activation. Even
if the MTU is neither specified via the connection nor other means, like
DHCP.

Revert that change. On activation, if nothing explicitly configures the
MTU, leave it unchanged. This is like what we do with ethernet's
cloned-mac-address, which has a default value "preserve".
So, as last resort the default value for MTU is now 0 (don't change),
instead of depending on the device type.

Note that you also can override the default value in global
configuration via NetworkManager.conf.

This behavior makes sense, because whenever NM actively resets the MTU,
it remembers the previous value and restores it when deactivating
the connection. That wasn't implemented before 2b51d3967, and the
MTU would depend on which connection was previously active. That
is no longer an issue as the MTU gets reset when deactivating.

https://bugzilla.redhat.com/show_bug.cgi?id=1460760
2017-06-13 15:05:30 +02:00
..
adsl device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
bluetooth bluetooth: assert against registering same device multiple times 2017-06-07 09:07:18 +02:00
team device: transform NM_DEVICE_IS_MASTER gobject property to field in NMDeviceClass 2017-06-02 21:06:08 +02:00
tests platform/tests: use nm_platform_link_veth_add() to create veth pair in test 2017-05-27 23:16:56 +02:00
wifi device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
wwan ofono: clenaup NMModemOfono's disconnect() 2017-05-12 17:29:33 +02:00
nm-arping-manager.c devices/arping-manager: log the device context 2017-03-24 12:42:09 +01:00
nm-arping-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bond.c bond: check for NULL bond mode value in update_connection() 2017-06-08 09:44:47 +02:00
nm-device-bond.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bridge.c device: inline bluetooth function in nm-device-bridge.c 2017-06-07 09:07:18 +02:00
nm-device-bridge.h bridge: move the Bluetooth NAP logic to bridge device 2017-06-01 11:57:42 +02:00
nm-device-dummy.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-dummy.h core: add support for dummy devices 2017-02-22 21:05:04 +01:00
nm-device-ethernet-utils.c device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet-utils.h device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet.c device: minor cleanup of NMDeviceEthernet:get_link_speed() 2017-06-02 21:06:07 +02:00
nm-device-ethernet.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-factory.c all: change handling of connection.type for bluetooth NAP and in general 2017-06-07 09:07:17 +02:00
nm-device-factory.h device: hide nm_device_factory_get_supported_types() function 2017-06-07 09:07:17 +02:00
nm-device-generic.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-generic.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-infiniband.c device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
nm-device-infiniband.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-ip-tunnel.c device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
nm-device-ip-tunnel.h device: move tracking of parent device from NMDeviceIPTunnel to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-logging.h manager: add logging macro _NMLOG2() for logging device messages 2017-06-08 21:50:23 +02:00
nm-device-macsec.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-macsec.h core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-device-macvlan.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-macvlan.h device: move tracking of parent device from NMDeviceMacvlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-private.h device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
nm-device-tun.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-tun.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-veth.c device: remove unused private data for NMDeviceVeth 2017-05-27 23:16:56 +02:00
nm-device-veth.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-device-vlan.c device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
nm-device-vlan.h device: move tracking of parent device from NMDeviceVlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-vxlan.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-vxlan.h device: move tracking of parent device from NMDeviceVxlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device.c device: don't set MTU of device unless explicitly configured 2017-06-13 15:05:30 +02:00
nm-device.h device: suppress logging and return error reason from nm_device_generate_connection() 2017-06-08 21:50:23 +02:00
nm-lldp-listener.c all: fix typo 'entires' -> 'entries' 2017-05-05 19:14:19 +02:00
nm-lldp-listener.h core: refactor private data for NMExportedObject and others 2016-10-03 12:04:14 +02:00