From ec167554c50fc48c9cfffe9de464919356a59c8f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 30 Mar 2016 14:13:41 +0100 Subject: [PATCH] refactor: consistent order --- router/fastdp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/fastdp.go b/router/fastdp.go index f0861927..1b50b03d 100644 --- a/router/fastdp.go +++ b/router/fastdp.go @@ -29,9 +29,9 @@ type missHandler func(fks odp.FlowKeys, lock *fastDatapathLock) FlowOp type FastDatapath struct { lock sync.Mutex // guards state and synchronises use of dpif + iface *net.Interface dpif *odp.Dpif dp odp.DatapathHandle - iface *net.Interface deleteFlowsCount uint64 missCount uint64 missHandlers map[odp.VportID]missHandler @@ -79,9 +79,9 @@ func NewFastDatapath(iface *net.Interface, port int) (*FastDatapath, error) { } fastdp := &FastDatapath{ + iface: iface, dpif: dpif, dp: dp, - iface: iface, missHandlers: make(map[odp.VportID]missHandler), sendToPort: nil, sendToMAC: make(map[MAC]bridgeSender),