Commit 18d5b31
LoongArch: BPF: Update the code to rename validate_code to validate_ctx
Rename the existing validate_code() to validate_ctx()
Factor out the code validation handling into a new helper validate_code()
* validate_code is used to check the validity of code.
* validate_ctx is used to check both code validity and table entry
correctness.
The new validate_code() will be used in subsequent changes.
Co-developed-by: George Guo <[email protected]>
Signed-off-by: George Guo <[email protected]>
Signed-off-by: Chenghao Duan <[email protected]>1 parent 78c66c4 commit 18d5b31
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
1183 | 1191 | | |
1184 | 1192 | | |
1185 | 1193 | | |
| |||
1288 | 1296 | | |
1289 | 1297 | | |
1290 | 1298 | | |
1291 | | - | |
| 1299 | + | |
1292 | 1300 | | |
1293 | 1301 | | |
1294 | 1302 | | |
| |||
0 commit comments