From 91496de250c98504e0f6aad97bd0a20ade35ae1e Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Mon, 11 Apr 2022 13:31:59 -0500 Subject: [PATCH] Testing for MTU fix for cmd-forwarder-vpp#557 Signed-off-by: Ed Warnicke --- internal/tests/suite_kernel_test.go | 2 +- internal/vppinit/vppinit.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tests/suite_kernel_test.go b/internal/tests/suite_kernel_test.go index 6bd1faa8..aa674ce1 100644 --- a/internal/tests/suite_kernel_test.go +++ b/internal/tests/suite_kernel_test.go @@ -262,7 +262,7 @@ func pingKernel(ipnet *net.IPNet, handle netns.NsHandle) error { if ipnet == nil { return nil } - pingStr := fmt.Sprintf("ping -c 1 %s", ipnet.IP.String()) + pingStr := fmt.Sprintf("ping -c 1 -s 3000 %s", ipnet.IP.String()) if err := exechelper.Run(pingStr, exechelper.WithEnvirons(os.Environ()...), exechelper.WithStdout(os.Stdout), diff --git a/internal/vppinit/vppinit.go b/internal/vppinit/vppinit.go index 836f7f84..aff5bcb8 100644 --- a/internal/vppinit/vppinit.go +++ b/internal/vppinit/vppinit.go @@ -264,7 +264,7 @@ func setMtu(ctx context.Context, vppConn api.Connection, link netlink.Link, swIf WithField("swIfIndex", setMtu.SwIfIndex). WithField("MTU", setMtu.Mtu). WithField("duration", time.Since(now)). - WithField("vppapi", "HwInterfaceSetMtu").Debug("completed") + WithField("vppapi", "SwInterfaceSetMtu").Debug("completed") return nil }