Skip to content

Commit eeeb399

Browse files
committed
add comment for tailcall to userspace
Signed-off-by: weli-l <1289113577@qq.com>
1 parent bfa4e00 commit eeeb399

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpf/kmesh/workload/include/authz.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,9 @@ int policies_check(struct xdp_md *ctx)
574574
}
575575
policy = map_lookup_authz(policyId);
576576
if (!policy) {
577+
// Currently, authz in xdp only support ip and port,
578+
// if any principal or namespace type policy is configured,
579+
// we need to tailcall to userspace.
577580
if (match_ctx->need_tailcall_to_userspace) {
578581
bpf_tail_call(ctx, &map_of_xdp_tailcall, TAIL_CALL_AUTH_IN_USER_SPACE);
579582
return XDP_PASS;

0 commit comments

Comments
 (0)