summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/sharedmem
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2018-09-14 16:38:45 -0700
committerShentubot <shentubot@google.com>2018-09-14 16:39:56 -0700
commit75c66f871b56a8f4e83dc9ccec29cf3d2c38fea4 (patch)
tree137a5e51dcc786e76bc96e34ac36be8fdb5ac304 /pkg/tcpip/link/sharedmem
parent3aa50f18a4102429aa40f5d0e518357ceaed2373 (diff)
Remove buffer.Prependable.UsedBytes
It is the same as buffer.Prependable.View. PiperOrigin-RevId: 213064166 Change-Id: Ib33b8a2c4da864209d9a0be0a1c113be10b520d3
Diffstat (limited to 'pkg/tcpip/link/sharedmem')
-rw-r--r--pkg/tcpip/link/sharedmem/sharedmem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/link/sharedmem/sharedmem.go b/pkg/tcpip/link/sharedmem/sharedmem.go
index 887612957..5157f71e8 100644
--- a/pkg/tcpip/link/sharedmem/sharedmem.go
+++ b/pkg/tcpip/link/sharedmem/sharedmem.go
@@ -196,7 +196,7 @@ func (e *endpoint) WritePacket(r *stack.Route, hdr buffer.Prependable, payload b
v := payload.ToView()
// Transmit the packet.
e.mu.Lock()
- ok := e.tx.transmit(hdr.UsedBytes(), v)
+ ok := e.tx.transmit(hdr.View(), v)
e.mu.Unlock()
if !ok {