Skip to content

Commit

Permalink
set genev_sys_6081 tx checksum off (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma authored Jul 18, 2023
1 parent 4e76115 commit 3be1e84
Showing 1 changed file with 14 additions and 1 deletion.
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
}

0 comments on commit 3be1e84

Please sign in to comment.