diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2019-02-19 18:22:59 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-19 18:23:54 -0800 |
commit | 3e3a1ef9d61fccf6d0d9a52f4e885a6e07a07609 (patch) | |
tree | ea2d0a5dcc2c90daaff0d427a33106b723a4f15a /pkg/sentry/kernel/sessions.go | |
parent | ec2460b1890aa1dbf8bd84f11dbdb3758e2443b2 (diff) |
Updates tcp_proxy to use an AF_PACKET and veth devices.
tcp_proxy now uses an AF_PACKET socket as the FD for netstack link layer
endpoint instead of a tap device. It also changes the link layer endpoint to use
PacketMMap dispatch instead of Readv. This reduces overall cpu and reflects the
current runsc setup which uses PacketMMap and also uses veth devices to receive
packets.
Also fixed a bug in gonet where Read() was not doing coalescing read and would
read small amounts at a time.
PiperOrigin-RevId: 234714768
Change-Id: Idabf8e600e4512489d3ba441c4096dc74deba5d7
Diffstat (limited to 'pkg/sentry/kernel/sessions.go')
0 files changed, 0 insertions, 0 deletions