Commit f4d31a3
bpf: add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL
Add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL which could be
used when we want to allow NULL pointer for map parameter. The bpf helper
need to take care and check if the map is NULL when use this type.
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>1 parent fd448bb commit f4d31a3
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| |||
4444 | 4445 | | |
4445 | 4446 | | |
4446 | 4447 | | |
| 4448 | + | |
4447 | 4449 | | |
4448 | 4450 | | |
4449 | 4451 | | |
| |||
4589 | 4591 | | |
4590 | 4592 | | |
4591 | 4593 | | |
4592 | | - | |
4593 | | - | |
4594 | | - | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
4595 | 4597 | | |
4596 | 4598 | | |
4597 | 4599 | | |
| |||
0 commit comments