From d07007743d017f8ae01231f703d5009e0e8006bd Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sat, 3 Aug 2024 22:29:49 +0200 Subject: [PATCH] Limit mtu for jumbo to 10000, max mtu of virtual switches is unknown. --- netlink.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/netlink.pl b/netlink.pl index 6387eec..7af457b 100755 --- a/netlink.pl +++ b/netlink.pl @@ -372,6 +372,7 @@ sub good { my $mtu = 1500; if ($modify eq 'jumbo' && $hwhardmtu) { ($mtu = $hwhardmtu) =~ s/...$/000/ if $hwhardmtu >= 2000; + $mtu = 10000 if $mtu > 10000; $lnx_l_mtu = $mtu if $if eq $obsd_l_if; $lnx_r_mtu = $mtu if $if eq $obsd_r_if; }