You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/proposal/ut_test.md
-10Lines changed: 0 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ know that this has succeeded?
43
43
- Successfully running unit test code for Kmesh's eBPF cgroup program.
44
44
45
45
- Documentation written in English for the tests of both sendMsg and cgroup programs.
46
-
47
46
#### Non-Goals
48
47
49
48
<!--
@@ -72,7 +71,6 @@ nitty-gritty.
72
71
- For branches that write to BPF maps, use coll.Maps["..."] on the Go testing side to verify whether the map contents are correct.
73
72
- For branches that do not write to any map, the current approach is to use the BPF_LOG() macro to print debug information for verification.
74
73
75
-
76
74
### Design Details
77
75
78
76
<!--
@@ -85,7 +83,6 @@ proposal will be implemented, this is the place to discuss them.
85
83
- Detailed Implementation Points
86
84
- Mounting and Triggering Details for the Three Programs, and Current Testing Points
87
85
88
-
89
86
- For sendmsg.c
90
87
- Purpose: This file’s function is to prepend TLV (Type-Length-Value) metadata when sending messages.
91
88
- Attachment Point: It uses SEC("sk_msg"), so it needs to be attached at the socket message layer.
@@ -106,8 +103,6 @@ proposal will be implemented, this is the place to discuss them.
106
103
- encode_metadata_end(msg, off);
107
104
- Verify that the TLV data is correctly written into the buffer.
108
105
109
-
110
-
111
106
- For cgroup_skb.c
112
107
- Purpose: This file intercepts network packets and monitors or collects statistics on connections that meet certain conditions.
113
108
- Attachment Point: Can be attached to the cgroup, following the example of the testing method used in sockops.c.
@@ -126,8 +121,6 @@ proposal will be implemented, this is the place to discuss them.
126
121
- This function triggers reporting based on timing and performs operations on BPF maps.
127
122
- Corresponding maps can be checked on the Go side for testing purposes.
128
123
129
-
130
-
131
124
- For cgroup_sock.c
132
125
- Purpose:During TCP connection initiation, this function performs traffic control and records/modifies the original destination address based on Kmesh’s management logic, and executes further processing via tail call when necessary.
133
126
- Attachment Point: Can be attached to the cgroup, following the example of the testing method used in sockops.c.
@@ -144,7 +137,6 @@ proposal will be implemented, this is the place to discuss them.
144
137
- 5:set_original_dst_info()
145
138
- Verify that the original destination address is correctly written into the bpf_sk_storage structure.
146
139
147
-
148
140
- Both cgroup_skb.c and cgroup_sock.c are attached to the cgroup, so their mounting process is the same and the attachment and triggering have already been implemented as follows
149
141
150
142
```
@@ -162,8 +154,6 @@ proposal will be implemented, this is the place to discuss them.
0 commit comments