11 Commits
Author SHA1 Message Date
Nayana BidariandgVisor bot ee34fd3b9d Mark more structs in netstack as savable.
PiperOrigin-RevId: 663780274
2024-08-16 10:47:24 -07:00
Kevin KrakauerandgVisor bot 5b4fbd06d8 netstack: remove PacketBufferPtr
PacketBufferPtr is leftover from a dead experiment. Just use *PacketBuffer.

PiperOrigin-RevId: 611531815
2024-02-29 11:10:38 -08:00
Kevin KrakauerandgVisor bot 89d6bf18c8 have gVisor use renamed buffer package
PiperOrigin-RevId: 537209194
2023-06-01 21:27:49 -07:00
Kevin KrakauerandgVisor bot 4eca206fa4 netstack: introduce PacketBufferPtr
PiperOrigin-RevId: 479437464
2022-10-06 16:16:54 -07:00
Lucas ManningandgVisor bot 3404bfa49a Refactor sharedmem tx.transmit to use bufferv2.
This reduces the amount of garbage produced by the methods.

PiperOrigin-RevId: 471141815
2022-08-30 18:41:00 -07:00
Lucas ManningandgVisor bot 04edcf5e6c Replace VectorisedView in link endpoints with pkg/buffer.Buffer.
PiperOrigin-RevId: 447562596
2022-05-09 14:22:08 -07:00
Kevin KrakauerandgVisor bot ef9e8d9131 netstack: switch from sync/atomic to atomicbitops for 32 bit values
PiperOrigin-RevId: 444446109
2022-04-25 20:41:26 -07:00
Bhasker HariharanandgVisor bot f2a57c9dac Fixes multiple bugs in server_rx implementation.
fillPacket was incorrectly setting the buffer sizes and
causing large packets to be egressed incorrectly resulting
in packet drops when the MTU was > buffer size.

PiperOrigin-RevId: 420178122
2022-01-06 17:33:31 -08:00
Bhasker HariharanandgVisor bot 8acc3a9bb2 Reduce eventFD notifications on transmit.
When transmitting packets we only need to notify if the peer is not
already processing packets. sharedData region is used to enable/disable
notifications and the peer will disable notifications when its actively
processing packets and enable notifications just before it goes to
sleep waiting on packets. This allows more efficient transmit as the
sharedmem endpoint does not need to notify on eventFD and incur an
expensive host systemcall when the peer is already awake.

PiperOrigin-RevId: 406018843
2021-10-27 17:25:46 -07:00
Kevin KrakauerandgVisor bot e44b100654 add convenient wrapper for eventfd
The same create/write/read pattern is copied around several places. It's easier
to understand in a package with names and comments, and we can reuse the smart
blocking code in package rawfile.

PiperOrigin-RevId: 401647108
2021-10-07 17:41:20 -07:00
Bhasker HariharanandgVisor bot 84063e88c3 Add server implementation for sharedmem endpoints.
PiperOrigin-RevId: 401088040
2021-10-05 15:43:46 -07:00