Skip to content

Commit

Permalink
fix:can not delete pod with sriov vf (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhui-Corigine authored Jul 1, 2022
1 parent 9a180f5 commit 993ae20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ovs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func setVfMac(deviceID string, vfIndex int, mac string) error {
devicePortNameFile := filepath.Join(util.NetSysDir, dev, "phys_port_name")
physPortName, err := sriovutilfs.Fs.ReadFile(devicePortNameFile)
if err != nil {
return err
continue
}

if !strings.Contains(strings.TrimSpace(string(physPortName)), "vf") {
Expand Down

0 comments on commit 993ae20

Please sign in to comment.