Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paravmellanox authored Apr 3, 2018
1 parent 1dd56d2 commit 0156d1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 0156d1b

Please sign in to comment.