File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,21 @@ import (
2121func main() {
2222 var vfList[10] *VfObj
2323
24- err1 := EnableSRIOV ("ib0")
24+ err1 := EnableSriov ("ib0")
2525 if err1 != nil {
26- t.Fatal(err1)
26+ return
2727 }
2828
2929 handle, err2 := GetPfNetdevHandle("ib0")
3030 if err2 != nil {
31- t.Fatal(err2)
31+ return
3232 }
33- err3 := ConfigVFs (handle)
33+ err3 := ConfigVfs (handle)
3434 if err3 != nil {
35- t.Fatal(err3)
35+ return
3636 }
3737 for i := 0; i < 10; i++ {
38- vfList[i], _ = AllocateVF (handle)
38+ vfList[i], _ = AllocateVf (handle)
3939 }
4040 for _, vf := range handle.List {
4141 fmt.Printf("after allocation vf = %v\n", vf)
@@ -44,7 +44,7 @@ func main() {
4444 if vfList[i] == nil {
4545 continue
4646 }
47- FreeVF (handle, vfList[i])
47+ FreeVf (handle, vfList[i])
4848 }
4949 for _, vf := range handle.List {
5050 fmt.Printf("after free vf = %v\n", vf)
You can’t perform that action at this time.
0 commit comments