Skip to content

Commit 7b5abca

Browse files
authored
Merge pull request kmesh-net#985 from weli-l/dev/auth_multi_tailcall
support xdp auth in tailcall
2 parents 6cdc638 + e22e641 commit 7b5abca

36 files changed

+854
-354
lines changed

bpf/include/common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct kmesh_config {
6767
__u32 bpf_log_level;
6868
__u32 node_ip[4];
6969
__u32 pod_gateway[4];
70+
__u32 authz_offload;
7071
};
7172

7273
static inline void *kmesh_map_lookup_elem(void *map, const void *key)
@@ -137,6 +138,11 @@ struct {
137138
__type(value, struct buf);
138139
} tmp_buf SEC(".maps");
139140

141+
/*
142+
* This map is used to store different configuration options:
143+
* - key 0: Stores the log level
144+
* - key 1: Stores the authz (authorization) toggle
145+
*/
140146
struct {
141147
__uint(type, BPF_MAP_TYPE_ARRAY);
142148
__uint(max_entries, 1);

bpf/kmesh/bpf2go/dualengine/kmeshcgroupsockworkload_bpfeb.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshcgroupsockworkload_bpfel.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshcgroupsockworkloadcompat_bpfeb.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshcgroupsockworkloadcompat_bpfel.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshsendmsg_bpfeb.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshsendmsg_bpfel.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshsendmsgcompat_bpfeb.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshsendmsgcompat_bpfel.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bpf/kmesh/bpf2go/dualengine/kmeshsockopsworkload_bpfeb.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)