10 Commits
Author SHA1 Message Date
Andrei Vagin af92292ac8 Fix typos 2024-05-02 11:09:16 -07:00
Kevin KrakauerandgVisor bot f76d64021e xdp: update the incorrectly named "Readonly*" names
PiperOrigin-RevId: 592664806
2023-12-20 14:57:27 -08:00
Kevin KrakauerandgVisor bot c1aef9f901 xdp: control USE_NEED_WAKEUP via flag for benchmarking
PiperOrigin-RevId: 591382575
2023-12-15 16:02:53 -08:00
Kevin KrakauerandgVisor bot 6beb925dfd xdp: add flag for runsc to use an XDP socket on a host device
In combination with `xdp_loader redirect`, this allows `runsc` to receive
packets directly from any NIC. It is intended to be used with a machine's NIC
to avoid the Linux networking stack entirely.

PiperOrigin-RevId: 591090544
2023-12-14 17:02:25 -08: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 Krakauer 3a9134c2f0 netstack: benchmark xdp endpoint
This just swaps out the fdbased endpoint for an XDP one. Some related
changes in here:

- Moved the AF_XDP BPF program into its own Go package so it can be
  shared.
- Added a flag to tcp_benchmark to disable user namespaces. This helps
  when running as root, which is required to install BPF programs.
2023-08-31 11:09:15 -07:00
Adin ScannellandgVisor bot 1ceb814544 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Kevin KrakauerandgVisor bot 140384fa22 xdp: TX support
PiperOrigin-RevId: 480680001
2022-10-12 11:51:51 -07:00
Kevin KrakauerandgVisor bot ad7b1121d4 xdp: use needs-wakeup flag
This is recommended in the kernel docs:
https://www.kernel.org/doc/html/latest/networking/af_xdp.html#xdp-use-need-wakeup-bind-flag

PiperOrigin-RevId: 472596449
2022-09-06 17:34:14 -07:00
Kevin KrakauerandgVisor bot 9bf0b63a37 xdp_loader: add tcpdump-ish program
Uses an AF_XDP socket to log packets entering a device. Can be used for
testing, but mostly useful as a minimal example of receiving packets via
AF_XDP.

Note that this actually prevents the packets from reaching their intended
destination, as redirection does not also send the packet through Linux's
network stack.

PiperOrigin-RevId: 470073040
2022-08-25 13:46:15 -07:00