From b95fbd0ed0fbab90c0848ca7d4f5542d6e722010 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Wed, 8 Oct 2025 14:53:51 +0530 Subject: [PATCH] rollback example --- examples/xdp_pass.py | 6 +++--- tests/failing_tests/xdp_pass.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/xdp_pass.py b/examples/xdp_pass.py index bc77ad0..a120a6f 100644 --- a/examples/xdp_pass.py +++ b/examples/xdp_pass.py @@ -1,8 +1,8 @@ from pythonbpf import bpf, map, section, bpfglobal, compile, compile_to_ir from pythonbpf.helper import XDP_PASS from pythonbpf.maps import HashMap -from vmlinux import struct_xdp_md -from ctypes import c_void_p, c_int64 +from ctypes import c_int64, c_void_p + # Instructions to how to run this program # 1. Install PythonBPF: pip install pythonbpf @@ -20,7 +20,7 @@ def count() -> HashMap: @bpf @section("xdp") -def hello_world(ctx: struct_xdp_md) -> c_int64: +def hello_world(ctx: c_void_p) -> c_int64: key = 0 one = 1 prev = count().lookup(key) diff --git a/tests/failing_tests/xdp_pass.py b/tests/failing_tests/xdp_pass.py index 2bae7a2..d8a7af2 100644 --- a/tests/failing_tests/xdp_pass.py +++ b/tests/failing_tests/xdp_pass.py @@ -1,7 +1,7 @@ from pythonbpf import bpf, map, section, bpfglobal, compile, compile_to_ir from pythonbpf.maps import HashMap from vmlinux import struct_xdp_md, XDP_PASS -from ctypes import c_void_p, c_int64 +from ctypes import c_int64 # Instructions to how to run this program # 1. Install PythonBPF: pip install pythonbpf