Revision 3be3dec9
Added by Renato Botelho over 9 years ago
src/etc/inc/interfaces.inc | ||
---|---|---|
3316 | 3316 |
$parentmtu = interface_vlan_mtu_configured($mtuhwif, $wantedmtu); |
3317 | 3317 |
|
3318 | 3318 |
if (get_interface_mtu($mtuhwif) != $parentmtu) { |
3319 |
pfSense_interface_mtu($mtuhwif, $parentmtu); |
|
3319 |
/* LAGG interface must be destroyed and re-created to change MTU */ |
|
3320 |
if (substr($mtuhwif, 0, 4) == 'lagg') { |
|
3321 |
if (isset($config['laggs']['lagg']) && |
|
3322 |
is_array($config['laggs']['lagg'])) { |
|
3323 |
foreach ($config['laggs']['lagg'] as $lagg) { |
|
3324 |
if ($lagg['laggif'] == $mtuhwif) { |
|
3325 |
interface_lagg_configure($lagg); |
|
3326 |
break; |
|
3327 |
} |
|
3328 |
} |
|
3329 |
} |
|
3330 |
} else { |
|
3331 |
pfSense_interface_mtu($mtuhwif, $parentmtu); |
|
3332 |
} |
|
3320 | 3333 |
} |
3321 | 3334 |
|
3322 | 3335 |
/* All vlans need to use the same mtu value as their parent. */ |
Also available in: Unified diff
When parent of a VLAN is LAGG and need to set a different MTU, interface must be re-created