Skip to content

Commit

Permalink
store workload_polices to bpf map in kmesh-deamon
Browse files Browse the repository at this point in the history
Signed-off-by: superCharge-xsy <[email protected]>
  • Loading branch information
supercharge-xsy committed Aug 20, 2024
1 parent 13eb0ae commit 4b284b3
Show file tree
Hide file tree
Showing 9 changed files with 324 additions and 311 deletions.
3 changes: 0 additions & 3 deletions bpf/include/bpf_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@
/* Ip(0.0.0.2 | ::2) used for control command, e.g. KmeshControl */
#define CONTROL_CMD_IP 2


#define MAP_SIZE_OF_OUTTER_MAP 8192

#define BPF_DATA_MAX_LEN \
192 /* this value should be \
small that make compile success */
#define BPF_INNER_MAP_DATA_LEN 1300



struct manager_key {
union {
__u64 netns_cookie;
Expand Down
1 change: 0 additions & 1 deletion bpf/kmesh/ads/include/kmesh_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#define BPF_LOGTYPE_ROUTER_CONFIG BPF_DEBUG_ON
#define BPF_LOGTYPE_COMMON BPF_DEBUG_ON


#define BPF_OK 1

#define _(P) \
Expand Down
Loading

0 comments on commit 4b284b3

Please sign in to comment.