sorry, there was a problem with the last patch; it didn't work if the vlan interface already existed, even if the raw device mtu was too low. this updated debdiff checks and increases the dev mtu even if the vlan interface already exists.
diff -u vlan-1.9/debian/changelog vlan-1.9/debian/changelog --- vlan-1.9/debian/changelog +++ vlan-1.9/debian/changelog @@ -1,3 +1,10 @@ +vlan (1.9-3.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Increase vlan raw device mtu if less than vlan mtu. (Closes: #722496) + + -- Dan Streetman <dan.street...@canonical.com> Fri, 09 Sep 2016 09:03:11 -0400 + vlan (1.9-3.2) unstable; urgency=medium * Non-maintainer upload. diff -u vlan-1.9/debian/network/if-pre-up.d/vlan vlan-1.9/debian/network/if-pre-up.d/vlan --- vlan-1.9/debian/network/if-pre-up.d/vlan +++ vlan-1.9/debian/network/if-pre-up.d/vlan @@ -49,6 +49,14 @@ ;; esac +if [ -n "$IF_MTU" -a -n "$IF_VLAN_RAW_DEVICE" ]; then + CUR_DEV_MTU=`cat /sys/class/net/$IF_VLAN_RAW_DEVICE/mtu` + # increase the vlan raw device mtu if needed + if [ -n "$CUR_DEV_MTU" ] && [ $CUR_DEV_MTU -lt $IF_MTU ]; then + ip link set dev $IF_VLAN_RAW_DEVICE mtu $IF_MTU + fi +fi + if [ -n "$IF_VLAN_RAW_DEVICE" ]; then if [ ! -x /sbin/vconfig ]; then exit 0