Skip to content

Commit 809562b

Browse files
fixup! add XDPLua
1 parent e462d21 commit 809562b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/core/filter.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4854,15 +4854,16 @@ BPF_CALL_4(bpf_lua_pcall, struct xdp_buff *, ctx, char *, funcname,
48544854
goto clean_state;
48554855
}
48564856

4857-
lua_insert(ctx->L, 1);
4857+
lua_insert(ctx->L, base + 1);
48584858
if (lua_pcall(ctx->L, num_args, num_rets, 0)) {
48594859
pr_err("%s\n", lua_tostring(ctx->L, -1));
48604860
num_rets = 0;
48614861
goto clean_state;
48624862
}
48634863

4864-
clean_state:
48654864
base += num_rets;
4865+
4866+
clean_state:
48664867
lua_settop(ctx->L, base);
48674868
return num_rets;
48684869
}

0 commit comments

Comments
 (0)