diff --git a/tap/tap_vpp.go b/tap/tap_vpp.go index b033d02..ec399f2 100644 --- a/tap/tap_vpp.go +++ b/tap/tap_vpp.go @@ -238,6 +238,7 @@ func CreateVppTAP(iconfig config.InterfaceConf, loglevel string) (tapdev Device, tap.RxintCh = memif.GetInterruptChan() tap.RxintErrCh = memif.GetInterruptErrorChan() tap.TxQueues = len(details.TxQueues) + tunErrorChannel = tap.errors tap.events <- EventUp return tap, nil } @@ -336,8 +337,8 @@ func (tap *VppTap) Close() error { SocketID: tap.ifuid, SocketFilename: tap.memifSockPath, }) - go tap.memif.Close() - go libmemif.Cleanup() + tap.memif.Close() + libmemif.Cleanup() tap.events <- EventDown close(tap.errors) close(tap.events)