From 0156d1b9edc2624a50b73907f9de0ec3742d1551 Mon Sep 17 00:00:00 2001 From: Parav Pandit Date: Tue, 3 Apr 2018 00:19:46 -0500 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 43ce37c..31b8696 100644 --- a/README.md +++ b/README.md @@ -21,21 +21,21 @@ import ( func main() { var vfList[10] *VfObj - err1 := EnableSRIOV("ib0") + err1 := EnableSriov("ib0") if err1 != nil { - t.Fatal(err1) + return } handle, err2 := GetPfNetdevHandle("ib0") if err2 != nil { - t.Fatal(err2) + return } - err3 := ConfigVFs(handle) + err3 := ConfigVfs(handle) if err3 != nil { - t.Fatal(err3) + return } for i := 0; i < 10; i++ { - vfList[i], _ = AllocateVF(handle) + vfList[i], _ = AllocateVf(handle) } for _, vf := range handle.List { fmt.Printf("after allocation vf = %v\n", vf) @@ -44,7 +44,7 @@ func main() { if vfList[i] == nil { continue } - FreeVF(handle, vfList[i]) + FreeVf(handle, vfList[i]) } for _, vf := range handle.List { fmt.Printf("after free vf = %v\n", vf)