refactor: get rid of a superfluous fastdp member

This commit is contained in:
Matthias Radestock committed 2016-03-30 14:10:03 +01:00
1 parent 0f89f8562f
commit f24f38be9c
1 file changed
+1 -3
+1 -3
View File
@@ -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 {