Lock read of miss counter
This commit is contained in:
1 parent
eb79711e0a
commit
8ac745b4e5
1 file changed
+3
@@ -218,6 +218,9 @@ func (fastdp fastDatapathBridge) String() string {
|
||||
}
|
||||
|
||||
func (fastdp fastDatapathBridge) Stats() map[string]int {
|
||||
lock := fastdp.startLock()
|
||||
defer lock.unlock()
|
||||
|
||||
return map[string]int{
|
||||
"FlowMisses": int(fastdp.missCount),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user