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
(cherry picked from commit 993ae20)
  • Loading branch information
zhouhui-Corigine authored and oilbeater committed Aug 4, 2022
1 parent dc77ceb commit 8617350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ovs_linux.go
Expand Up @@ -963,7 +963,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 8617350

Please sign in to comment.