Skip to content

Commit

Permalink
Update pkg/daemon/ovs_linux.go
Browse files Browse the repository at this point in the history
Signed-off-by: 张祖建 <[email protected]>
  • Loading branch information
zhangzujian authored and yunsilicon committed May 23, 2024
1 parent b21902f commit c1dce71
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 @@ -57,7 +57,7 @@ func (csh cniServerHandler) configureDpdkNic(podName, podNamespace, provider, ne

func getCurrentVfCount(pfNetdevName string) (int, error) {
devDirName := filepath.Join(util.NetSysDir, pfNetdevName, "device", "sriov_numvfs")
value, err := os.ReadFile(devDirName)
value, err := os.ReadFile(devDirName) // #nosec G304
if err != nil {
klog.Errorf("read file %s error: %v", devDirName, err)
return 0, nil
Expand Down

0 comments on commit c1dce71

Please sign in to comment.