diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-11-18 15:09:28 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-18 15:09:28 +0000 |
commit | 64b61fd1d2431ee3086587b5fa3f7d6627c156b9 (patch) | |
tree | d04cbe26dba0dac2b7387b092cdb8762277dd1ff /pkg/tcpip/link/sharedmem | |
parent | 62939087675d42e35e3800750f9448e30a5770b3 (diff) | |
parent | 9d148627f82f4325b499e023c5cbf8afd5f988f6 (diff) |
Merge release-20201109.0-69-g9d148627f (automated)
Diffstat (limited to 'pkg/tcpip/link/sharedmem')
-rw-r--r-- | pkg/tcpip/link/sharedmem/sharedmem.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/tcpip/link/sharedmem/sharedmem.go b/pkg/tcpip/link/sharedmem/sharedmem.go index 7fb8a6c49..a1e7018c8 100644 --- a/pkg/tcpip/link/sharedmem/sharedmem.go +++ b/pkg/tcpip/link/sharedmem/sharedmem.go @@ -224,21 +224,6 @@ func (e *endpoint) WritePackets(r *stack.Route, _ *stack.GSO, pkts stack.PacketB panic("not implemented") } -// WriteRawPacket implements stack.LinkEndpoint.WriteRawPacket. -func (e *endpoint) WriteRawPacket(vv buffer.VectorisedView) *tcpip.Error { - views := vv.Views() - // Transmit the packet. - e.mu.Lock() - ok := e.tx.transmit(views...) - e.mu.Unlock() - - if !ok { - return tcpip.ErrWouldBlock - } - - return nil -} - // dispatchLoop reads packets from the rx queue in a loop and dispatches them // to the network stack. func (e *endpoint) dispatchLoop(d stack.NetworkDispatcher) { |