summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-private.h
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-09-12 17:29:49 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-10-09 15:28:00 +0200
commitdd387785504c1e7d50490c7a1031076ae85d5a71 (patch)
treee565594d562980cbbfeaaef536c637ddce7949f1 /src/devices/nm-device-private.h
parent28fce5877137541ca06a4772ce5ebe9796fe26c0 (diff)
downloadNetworkManager-dd387785504c1e7d50490c7a1031076ae85d5a71.tar.gz
device: introduce generic function to inherit MTU from parent
Introduce a generic function to set a MTU based on parent's one. Also define a device-specific @mtu_parent_delta value that specifies the difference from parent MTU that should be set by default. For VLAN it is zero but other interface types (for example MACsec) require a positive value due to encapsulation overhead.
Diffstat (limited to 'src/devices/nm-device-private.h')
-rw-r--r--src/devices/nm-device-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/nm-device-private.h b/src/devices/nm-device-private.h
index 4c38fa7a2a..b4bc6a1bfc 100644
--- a/src/devices/nm-device-private.h
+++ b/src/devices/nm-device-private.h
@@ -168,6 +168,9 @@ guint32 nm_device_get_configured_mtu_from_connection (NMDevice *device,
guint32 nm_device_get_configured_mtu_for_wired (NMDevice *self, NMDeviceMtuSource *out_source);
+guint32 nm_device_get_configured_mtu_wired_parent (NMDevice *self,
+ NMDeviceMtuSource *out_source);
+
void nm_device_commit_mtu (NMDevice *self);
/*****************************************************************************/