|
[RFC PATCH v2 3/3] bpf: add sample for BPF_MAP_TYPE_QUEUE
The example is made by two parts, a eBPF program that consumes elements from a FIFO queue and prints them in the screen and a user space application that inserts new elements into the queue each time
The example is made by two parts, a eBPF program that consumes elements from a FIFO queue and prints them in the screen and a user space application that inserts new elements into the queue each time
|
By
Mauricio Vasquez
·
|
|
[RFC PATCH v2 2/3] selftests/bpf: add test cases for BPF_MAP_TYPE_QUEUE
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@...> --- tools/include/uapi/linux/bpf.h | 5 ++ tools/testing/selftests/bpf/test_maps.c | 71 +++++++++++++++++++++++++++++++ 2 files changed, 76 inse
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@...> --- tools/include/uapi/linux/bpf.h | 5 ++ tools/testing/selftests/bpf/test_maps.c | 71 +++++++++++++++++++++++++++++++ 2 files changed, 76 inse
|
By
Mauricio Vasquez
·
|
|
[RFC PATCH 1/3] bpf: add bpf queue map
3 messages
Bpf queue implements a LIFO/FIFO data containers for ebpf programs. It allows to push an element to the queue by using the update operation and to pop an element from the queue by using the lookup ope
Bpf queue implements a LIFO/FIFO data containers for ebpf programs. It allows to push an element to the queue by using the update operation and to pop an element from the queue by using the lookup ope
|
By
Mauricio Vasquez
·
|
|
BPF hackfest in Berlin, Sept 26th-27th (just before ASG! conf)
Hi, We will have a BPF hackfest in Berlin on September 26th and 27th, 10am to 5pm in the Kinvolk office. This is just before the All Systems Go! conference (https://all-systems-go.io/), so there will
Hi, We will have a BPF hackfest in Berlin on September 26th and 27th, 10am to 5pm in the Kinvolk office. This is just before the All Systems Go! conference (https://all-systems-go.io/), so there will
|
By
Alban Crequy
·
|
|
[RFC PATCH 2/3] tests/bpf: add some test cases for BPF_MAP_TYPE_QUEUE
2 messages
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@...> --- tools/include/uapi/linux/bpf.h | 5 ++ tools/testing/selftests/bpf/test_maps.c | 72 +++++++++++++++++++++++++++++++ 2 files changed, 77 inse
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@...> --- tools/include/uapi/linux/bpf.h | 5 ++ tools/testing/selftests/bpf/test_maps.c | 72 +++++++++++++++++++++++++++++++ 2 files changed, 77 inse
|
By
Mauricio Vasquez
·
|
|
[RFC PATCH 0/3] Implement bpf map queue
Bpf queue map is a new kind of map that provides a LIFO/FIFO queue implementation. In some applications, like a SNAT, it is necessary to keep track of a pool of free elemenets, network ports in this c
Bpf queue map is a new kind of map that provides a LIFO/FIFO queue implementation. In some applications, like a SNAT, it is necessary to keep track of a pool of free elemenets, network ports in this c
|
By
Mauricio Vasquez
·
|
|
New helper bpf_get_current_pidns_info
5 messages
Hi All, I'm still working this issue https://github.com/iovisor/bcc/issues/1329. I have added tests under samples/bpf, here is test calling this new helper. Inside the container ping-10619 [000] d.s1
Hi All, I'm still working this issue https://github.com/iovisor/bcc/issues/1329. I have added tests under samples/bpf, here is test calling this new helper. Inside the container ping-10619 [000] d.s1
|
By
neirac
·
|
|
minutes: IO Visor TSC/Dev Meeting
Hi All, Thanks for dialing in today. As usual, here are my notes. Cheers! -Brenden === Discussion === Brenden: * f28 and ubuntu18.04 support * 0.6.1 tagged with those packages * will try to get python
Hi All, Thanks for dialing in today. As usual, here are my notes. Cheers! -Brenden === Discussion === Brenden: * f28 and ubuntu18.04 support * 0.6.1 tagged with those packages * will try to get python
|
By
Brenden Blanco
·
|
|
reminder: IO Visor TSC/Dev Meeting
Please join us tomorrow for our bi-weekly call. As usual, this meeting is open to everybody and completely optional. You might be interested to join if: You want to know what is going on in BPF land Y
Please join us tomorrow for our bi-weekly call. As usual, this meeting is open to everybody and completely optional. You might be interested to join if: You want to know what is going on in BPF land Y
|
By
Brenden Blanco
·
|
|
Helper functions available for XDP?
6 messages
Hi I am writing a bpf program for packet processing and have loaded my ingress function at BPF.XDP. I'm updating the destination IPv6 address and want to update the TCP checksum, but when I try to cal
Hi I am writing a bpf program for packet processing and have loaded my ingress function at BPF.XDP. I'm updating the destination IPv6 address and want to update the TCP checksum, but when I try to cal
|
By
Andrew Wang
·
|
|
Fixing stack trace function names by argument introspection
4 messages
Hi! Imagine I have an interpreter that runs some program in some custom language. If I were to get a stack trace, it would look like: sys_read() [k] read() execute_fn() execute_fn() execute_fn() execu
Hi! Imagine I have an interpreter that runs some program in some custom language. If I were to get a stack trace, it would look like: sys_read() [k] read() execute_fn() execute_fn() execute_fn() execu
|
By
marko@kevac.org
·
|
|
Accessing pinned eBPF map from the kernel
4 messages
Hi, I have an eBPF map created and pinned by a userspace process. Now I would like several eBPF programs to access this pinned eBPF map. Is there any bcc APIs that can be used? BPF_TABLE(), etc create
Hi, I have an eBPF map created and pinned by a userspace process. Now I would like several eBPF programs to access this pinned eBPF map. Is there any bcc APIs that can be used? BPF_TABLE(), etc create
|
By
Hyunseok
·
|
|
problems with __sync_add_and_fetch in BPF code
5 messages
Hi all, A while ago, I filed a bug with LLVM about __sync_add_and_fetch as compiled into eBPF code. https://bugs.llvm.org/show_bug.cgi?id=36573 Both it and __sync_fetch_and_add fail to return the corr
Hi all, A while ago, I filed a bug with LLVM about __sync_add_and_fetch as compiled into eBPF code. https://bugs.llvm.org/show_bug.cgi?id=36573 Both it and __sync_fetch_and_add fail to return the corr
|
By
Pablo Alvarez
·
|
|
Verifier error: variable stack access var_off
3 messages
I'm hoping someone knows a workaround here. I have a char buf[128] and I'd like to write to arbitrary offsets, but keep hitting this error. Any workaround? I've included a sample bcc program below, wh
I'm hoping someone knows a workaround here. I have a char buf[128] and I'd like to write to arbitrary offsets, but keep hitting this error. Any workaround? I've included a sample bcc program below, wh
|
By
Brendan Gregg
·
|
|
[RFC PATCHv2 13/13] xdp: early drop ipv6 packet.
If not using ipv6, drop it in XDP. Signed-off-by: William Tu <u9012063@...> --- bpf/xdp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bpf/xdp.h b/bpf/xdp.h index 2d2102a6ba28
If not using ipv6, drop it in XDP. Signed-off-by: William Tu <u9012063@...> --- bpf/xdp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bpf/xdp.h b/bpf/xdp.h index 2d2102a6ba28
|
By
William Tu
·
|
|
[RFC PATCHv2 12/13] ofproto: disable megaflow for bpf datapath.
BPF datapath is always exact match. Signed-off-by: William Tu <u9012063@...> --- ofproto/ofproto-dpif-upcall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofp
BPF datapath is always exact match. Signed-off-by: William Tu <u9012063@...> --- ofproto/ofproto-dpif-upcall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofp
|
By
William Tu
·
|
|
[RFC PATCHv2 10/13] tests: Add "make check-bpf" traffic target.
Add a separate test file tests/system-bpf-traffic.at for bpf testing. The test cases are a subset of the existing system-traffic.at, and with additional bpf-specific tests. When test passes, the log f
Add a separate test file tests/system-bpf-traffic.at for bpf testing. The test cases are a subset of the existing system-traffic.at, and with additional bpf-specific tests. When test passes, the log f
|
By
William Tu
·
|
|
[RFC PATCHv2 11/13] vagrant: add ebpf support using ubuntu/bionic
VAGRANT_VAGRANTFILE=Vagrantfile-eBPF vagrant up Signed-off-by: William Tu <u9012063@...> Signed-off-by: Yifeng Sun <pkusunyifeng@...> --- Makefile.am | 1 + Vagrantfile-eBPF | 99 ++++++++++++++++++++++
VAGRANT_VAGRANTFILE=Vagrantfile-eBPF vagrant up Signed-off-by: William Tu <u9012063@...> Signed-off-by: Yifeng Sun <pkusunyifeng@...> --- Makefile.am | 1 + Vagrantfile-eBPF | 99 ++++++++++++++++++++++
|
By
William Tu
·
|
|
[RFC PATCHv2 09/13] utilities: Add ovs-bpfctl utility.
From: Joe Stringer <joe@...> This new utility is used for standalone probing of BPF datapath state. Signed-off-by: Joe Stringer <joe@...> Signed-off-by: William Tu <u9012063@...> Signed-off-by: Yifeng
From: Joe Stringer <joe@...> This new utility is used for standalone probing of BPF datapath state. Signed-off-by: Joe Stringer <joe@...> Signed-off-by: William Tu <u9012063@...> Signed-off-by: Yifeng
|
By
William Tu
·
|
|
[RFC PATCHv2 07/13] bpf: implement OVS BPF datapath.
This patch adds the OVS-eBPF datapath implementation for dpif-bpf. Three stages are added: parse, lookup, and actions. Each stages are tail called to the next stage. When executing multiple actions, t
This patch adds the OVS-eBPF datapath implementation for dpif-bpf. Three stages are added: parse, lookup, and actions. Each stages are tail called to the next stage. When executing multiple actions, t
|
By
William Tu
·
|