Skip to content

Commit 822408f

Browse files
fixup! add XDPLua map sample
1 parent 73e349a commit 822408f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

samples/bpf/xdplua_map_kern.c

-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ int xdp_lua_test_map_prog(struct xdp_md *ctx)
2727
char lookupname[] = "lookup";
2828
char updatename[] = "update";
2929

30-
bpf_lua_putstate(ctx);
3130
bpf_lua_pushmap(ctx, &test_map);
3231
bpf_lua_pcall(ctx, updatename, 1, 0);
3332

3433
bpf_lua_pushmap(ctx, &test_map);
3534
bpf_lua_pcall(ctx, lookupname, 1, 0);
36-
bpf_lua_removestate(ctx);
3735

3836
return XDP_PASS;
3937
}

0 commit comments

Comments
 (0)