summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 8977519..1665ad1 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2913,10 +2913,12 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
}
$mtu = get_interface_default_mtu(remove_ifindex($realhwif));
+ $assignedparent = convert_real_interface_to_friendly_interface_name($realhwif);
+ if (!empty($assignedparent) && isset($config['interfaces'][$assignedparent]['mtu']))
+ $mtu = $config['interfaces'][$assignedparent]['mtu'];
if (!empty($wancfg['mtu'])) {
if (stristr($realif, "_vlan")) {
- $assignedparent = convert_real_interface_to_friendly_interface_name($realhwif);
if (!empty($assignedparent)) {
$parentmtu = $config['interfaces'][$assignedparent]['mtu'];
if (empty($parentmtu))
OpenPOWER on IntegriCloud