Skip to content

Commit 4230a48

Browse files
fixup! add XDPLua map sample
1 parent 1947a56 commit 4230a48

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

samples/bpf/xdplua_map_kern.c

Lines changed: 0 additions & 2 deletions
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)