Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set genev_sys_6081 tx checksum off #3045

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion cmd/daemon/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@

package daemon

import (
"fmt"
"os/exec"

"k8s.io/klog/v2"
)

func initForOS() error {
// nothing to do on Linux
// disable checksum for genev_sys_6081 as default
cmd := exec.Command("sh", "-c", "ethtool -K genev_sys_6081 tx off")
if err := cmd.Run(); err != nil {
err := fmt.Errorf("failed to set checksum off for genev_sys_6081, %v", err)
// should not affect cni pod running if failed, just record err log
klog.Error(err)
}
return nil
}