Skip to content

Commit

Permalink
fixup! add XDPLua map sample
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorNogueiraRio committed Mar 18, 2020
1 parent 73e349a commit 822408f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions samples/bpf/xdplua_map_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ int xdp_lua_test_map_prog(struct xdp_md *ctx)
char lookupname[] = "lookup";
char updatename[] = "update";

bpf_lua_putstate(ctx);
bpf_lua_pushmap(ctx, &test_map);
bpf_lua_pcall(ctx, updatename, 1, 0);

bpf_lua_pushmap(ctx, &test_map);
bpf_lua_pcall(ctx, lookupname, 1, 0);
bpf_lua_removestate(ctx);

return XDP_PASS;
}
Expand Down

0 comments on commit 822408f

Please sign in to comment.