We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b92e4 commit beaad99Copy full SHA for beaad99
1 file changed
examples/xdp_pass.py
@@ -23,14 +23,14 @@ def count() -> HashMap:
23
def hello_world(ctx: c_void_p) -> c_int64:
24
key = 0
25
one = 1
26
- prev = count().lookup(key)
+ prev = count.lookup(key)
27
if prev:
28
prevval = prev + 1
29
print(f"count: {prevval}")
30
- count().update(key, prevval)
+ count.update(key, prevval)
31
return XDP_PASS
32
else:
33
- count().update(key, one)
+ count.update(key, one)
34
35
36
0 commit comments