aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

flow.SystemReset() executing forever #706

Closed sitilge closed 4 years ago

sitilge commented 4 years ago

When trying to call flow.SystemReset(), the execution just stucks there, with no progress made for minutes. This is the code snippet:

package main

import (
    "fmt"
    "github.com/intel-go/nff-go/flow"
    "github.com/intel-go/nff-go/packet"
)

func main() {
    flow.CheckFatal(flow.SystemInit(nil))
    flow.CheckFatal(flow.SystemInitPortsAndMemory())

        //Just a placeholder.
    pkt, err := packet.NewPacket()
        if err != nil {
            flow.CheckFatal(err)
       }
       fmt.Println(pkt)

     //Stuck here!!!
    flow.SystemReset()
}
aregm commented 4 years ago

That's a well know problem in DPDK, not connected with NFF-Go itself. DPDK doesn't support so far on the fly reset functionality. But WIP.