Commit 70f441d
bpf: remove is_return in struct bpf_session_run_ctx
The "data" in struct bpf_session_run_ctx is always 8-bytes aligned.
Therefore, we can store the "is_return" to the last bit of the "data",
which can make bpf_session_run_ctx 8-bytes aligned and save memory.
Signed-off-by: Menglong Dong <[email protected]>1 parent da4ec66 commit 70f441d
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
2272 | | - | |
2273 | 2272 | | |
2274 | 2273 | | |
2275 | 2274 | | |
| |||
2535 | 2534 | | |
2536 | 2535 | | |
2537 | 2536 | | |
2538 | | - | |
2539 | | - | |
| 2537 | + | |
2540 | 2538 | | |
2541 | 2539 | | |
2542 | 2540 | | |
| |||
3058 | 3056 | | |
3059 | 3057 | | |
3060 | 3058 | | |
3061 | | - | |
3062 | | - | |
| 3059 | + | |
3063 | 3060 | | |
3064 | 3061 | | |
3065 | 3062 | | |
| |||
3316 | 3313 | | |
3317 | 3314 | | |
3318 | 3315 | | |
3319 | | - | |
| 3316 | + | |
3320 | 3317 | | |
3321 | 3318 | | |
3322 | 3319 | | |
3323 | 3320 | | |
3324 | 3321 | | |
3325 | 3322 | | |
3326 | 3323 | | |
3327 | | - | |
| 3324 | + | |
3328 | 3325 | | |
3329 | 3326 | | |
3330 | 3327 | | |
| |||
0 commit comments