From f24f38be9c2a5316c0a5bb2b6a9ae67525163e10 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 30 Mar 2016 14:10:03 +0100 Subject: [PATCH] refactor: get rid of a superfluous fastdp member --- router/fastdp.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/router/fastdp.go b/router/fastdp.go index c4d8c775..f0861927 100644 --- a/router/fastdp.go +++ b/router/fastdp.go @@ -28,7 +28,6 @@ type bridgeSender func(key PacketKey, lock *fastDatapathLock) FlowOp type missHandler func(fks odp.FlowKeys, lock *fastDatapathLock) FlowOp type FastDatapath struct { - dpname string lock sync.Mutex // guards state and synchronises use of dpif dpif *odp.Dpif dp odp.DatapathHandle @@ -80,7 +79,6 @@ func NewFastDatapath(iface *net.Interface, port int) (*FastDatapath, error) { } fastdp := &FastDatapath{ - dpname: iface.Name, dpif: dpif, dp: dp, iface: iface, @@ -204,7 +202,7 @@ func (fastdp fastDatapathBridge) Interface() *net.Interface { } func (fastdp fastDatapathBridge) String() string { - return fmt.Sprint(fastdp.dpname, " (via ODP)") + return fmt.Sprint(fastdp.iface.Name, " (via ODP)") } func (fastdp fastDatapathBridge) Stats() map[string]int {