Commit 6ce848c
bpf, x86: Avoid repeated usage of bpf_prog->aux->stack_depth
Refactor the code to avoid repeated usage of bpf_prog->aux->stack_depth
in do_jit() func. If the private stack is used, the stack_depth will be
0 for that prog. Refactoring make it easy to adjust stack_depth.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>1 parent f35407e commit 6ce848c
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
| 1428 | + | |
1428 | 1429 | | |
1429 | 1430 | | |
| 1431 | + | |
| 1432 | + | |
1430 | 1433 | | |
1431 | 1434 | | |
1432 | 1435 | | |
1433 | 1436 | | |
1434 | 1437 | | |
1435 | | - | |
| 1438 | + | |
1436 | 1439 | | |
1437 | 1440 | | |
1438 | 1441 | | |
| |||
2128 | 2131 | | |
2129 | 2132 | | |
2130 | 2133 | | |
2131 | | - | |
| 2134 | + | |
2132 | 2135 | | |
2133 | 2136 | | |
2134 | 2137 | | |
| |||
2145 | 2148 | | |
2146 | 2149 | | |
2147 | 2150 | | |
2148 | | - | |
| 2151 | + | |
2149 | 2152 | | |
2150 | 2153 | | |
2151 | 2154 | | |
2152 | 2155 | | |
2153 | 2156 | | |
2154 | | - | |
| 2157 | + | |
2155 | 2158 | | |
2156 | 2159 | | |
2157 | 2160 | | |
| |||
0 commit comments