xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

XDP tutorial

Results 162 xdp-tutorial issues
Sort by recently updated
recently updated
newest added

Is it possible to create a struct as shown below in the XDP part and use it as a key, then write to this map in the packet processor part?...

This piece of XDP code is not working (I mean map is not woking for read and write) when snprintf or bpf_snprintf exists. At bpf side, is there any possibility...

I've completed the assignment as mentioned in the solutions. Here's my C code: ``` /* SPDX-License-Identifier: GPL-2.0 */ #include #include #include #include #include #include #include #include #include /* Defines xdp_stats_map...

When I'm trying to build this repo. I get the following errors. ``` pegasus@pegasus:~/Documents/eBPF/xdp-tutorial$ make error: pathspec 'lib/libbpf' did not match any file(s) known to git lib libbpf CC install/lib/libbpf.a...

I have tried something below try to reuse a pinned map: step 1) load a prog to my test dev: $ ./xdp_loader --dev test step 2) do ping ops inside...

case1: redirect to outside veth0(10.11.1.2) test(10.11.1.1) eth1(9.134.119.213) internet case2: redirect to another namespace veth0(10.11.1.2) test(10.11.1.1) test1(10.11.2.1) veth0(10.11.2.2) result: case2 ping 10.11.2.2 is success case1 ping 183.2.172.42(i'm sure about that the...

Hello, Is it possible to avoid loading xdp_dispatcher and, instead, directly load the XDP program I want using **load_bpf_and_xdp_attach** function from this tutorial or **xdp_program__attach?** For example, even if my...

It says "all checks have failed" where I clearly wrote my name and **usable** e-mail address on the commit.

https://github.com/xdp-project/xdp-tutorial/blob/717f2546641a161312f085b326a6a4cbff494f8d/basic04-pinning-maps/README.org?plain=1#L148 I don't see anything that is remotely similar to this? ```c int pinned_map_fd = bpf_obj_get("/sys/fs/bpf/veth0/xdp_stats_map"); struct bpf_object *obj = bpf_object__open(cfg.filename); struct bpf_map *map = bpf_object__find_map_by_name(obj, "xdp_stats_map"); bpf_map__reuse_fd(map, pinned_map_fd); bpf_object__load(obj);...

Hi all, currently I am writing a pure golang library for using AF_XDP sockets. Little heads up: I do not want or need any support in my go code :)...