12 Commits
Author SHA1 Message Date
Jing ChenandgVisor bot 8ef3239b0b Add SetMTU to change the mtu of device.
The method will be primarily used with RTM_[NEW|SET]LINK when IFLA_MTU
is present.

PiperOrigin-RevId: 646264847
2024-06-24 16:58:13 -07:00
Jing ChenandgVisor bot 2c5c7869d9 Add SetLinkAddress method to NetworkLinkEndpoint interface.
The method will be primarily used by IFLA_ADDRESS.

PiperOrigin-RevId: 642492748
2024-06-11 21:40:39 -07:00
Andrei Vagin 5f4abad306 Fix a few typos
It is an idea of running codespell as part of our presubmit checks.
Before enabling it for new changes, let's fix what it has found.

Signed-off-by: Andrei Vagin <avagin@gmail.com>
2023-10-25 12:13:42 -07:00
Kevin KrakauerandgVisor bot 64268c8483 netstack: make tcpip.Address an opaque type
The important change here is in tcpip/tcpip.go, where tcpip.Address is defined.
The rest is updating uses of tcpip.Address.

This is preparation for netip.Addr or []byte based addresses, which should save
us a bunch of allocations. Currently, we allocate every time we want to, say,
get a tcpip.Address from a header. This is because the header is a byte slice,
but Address is a string. Strings are immutable, so Go allocates and copies.

PiperOrigin-RevId: 532284732
2023-05-15 18:07:03 -07:00
Ayush RanjanandgVisor bot 175db901ca Replace pkg/refs with pkg/refsvfs2.
All VFS1 only bits have been deleted.

Updates #1624

PiperOrigin-RevId: 492273183
2022-12-01 12:46:11 -08:00
Kevin KrakauerandgVisor bot 0a6e768256 reduce sharedmem server test runtime
The large bulk tests can take 25-45+ seconds. AFAIK we don't need to test such
large values.

PiperOrigin-RevId: 450959539
2022-05-25 10:41:57 -07:00
Bhasker HariharanandgVisor bot d38b0b3efe Add a bulk transfer test for sharedmem.
PiperOrigin-RevId: 433618153
2022-03-09 17:31:58 -08:00
Bhasker HariharanandgVisor bot 2083e858ad Add support to provide a sharedmem path to sharedmem.
PiperOrigin-RevId: 424744312
2022-01-27 17:17:42 -08:00
Lucas ManningandgVisor bot 73f339505d Correct sharedmem stress test flakiness.
This change increases test size to decrease the likelihood of a timeout,
adds a closed switch to qdisc to stop packets from being queued, and moves
queue clearing to when then dispatcher actually receives a close notification
rather than after it returns to make it more clear to the programmer that we
are clearing the queue during a "close" event. The latter change is purely
stylistic.

PiperOrigin-RevId: 423871729
2022-01-24 11:46:55 -08:00
Lucas ManningandgVisor bot 30f36c9c87 Enable leak checker in sharedmem tests.
This change also adds packet cleanup after qDisc queue is closed. This is
required for sharedmem_server_test to pass.

PiperOrigin-RevId: 422682841
2022-01-18 17:09:42 -08: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 84063e88c3 Add server implementation for sharedmem endpoints.
PiperOrigin-RevId: 401088040
2021-10-05 15:43:46 -07:00