Skip to content

Commit

Permalink
Limit mtu for jumbo to 10000, max mtu of virtual switches is unknown.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Aug 3, 2024
1 parent 7bdbfac commit d070077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d070077

Please sign in to comment.