From 822408f5e114d4afbe298411b8c4ad076691dddf Mon Sep 17 00:00:00 2001 From: Victor Nogueira Date: Wed, 18 Mar 2020 07:03:50 -0300 Subject: [PATCH] fixup! add XDPLua map sample --- samples/bpf/xdplua_map_kern.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/bpf/xdplua_map_kern.c b/samples/bpf/xdplua_map_kern.c index 4f00af0f80a617..d68d20732bb754 100644 --- a/samples/bpf/xdplua_map_kern.c +++ b/samples/bpf/xdplua_map_kern.c @@ -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; }