Skip to content

Commit 3625074

Browse files
authored
Merge pull request #12 from AkihiroSuda/a
benchmark: add MTU=4000
2 parents cd97def + f20614c commit 3625074

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hack/test/docker-entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ function benchmark::iperf3::vdeplug_slirp(){
3232
function benchmark::iperf3::main(){
3333
iperf3 -s > /dev/null &
3434
iperf3pid=$!
35-
for mtu in 1500 16384 65520; do
35+
for mtu in 1500 4000 16384 65520; do
3636
benchmark::iperf3::slirp4netns --mtu=$mtu
3737
if [[ $mtu -gt 16424 ]]; then
3838
INFO "Skipping benchmark::iperf3::vpnkit --mtu=$mtu (MTU greater than 16424 is known not to work for VPNKit)"
3939
else
40+
if [[ $mtu -gt 4000 ]]; then
41+
INFO "Note: MTU greather than 4K might not be effective for VPNKit: https://twitter.com/mugofsoup/status/1017665057738641408"
42+
fi
4043
benchmark::iperf3::vpnkit --mtu=$mtu
4144
fi
4245
if [[ $mtu -ne 1500 ]]; then

0 commit comments

Comments
 (0)