Now that SK_REDIRECT is no longer a valid return code. Remove it from the UAPI completely. Then do a namespace remapping internal to sockmap so SK_REDIRECT is no longer externally visible. Patchs primary change is to do a namechange from SK_REDIRECT to __SK_REDIRECT
Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -576,7 +576,7 @@ union bpf_attr { · 575 unmodified lines | ||
| 576 | 576 | * @map: pointer to sockmap |
| 577 | 577 | * @key: key to lookup sock in map |
| 578 | 578 | * @flags: reserved for future use |
| 579 | − * Return: SK_REDIRECT | |
| 579 | + * Return: SK_PASS | |
| 580 | 580 | * |
| 581 | 581 | * int bpf_sock_map_update(skops, map, key, flags) |
| 582 | 582 | * @skops: pointer to bpf_sock_ops |
| @@ -789,7 +789,6 @@ struct xdp_md { · 206 unmodified lines | ||
| 789 | 789 | enum sk_action { |
| 790 | 790 | SK_DROP = 0, |
| 791 | 791 | SK_PASS, |
| 792 | − SK_REDIRECT, | |
| 793 | 792 | }; |
| 794 | 793 | |
| 795 | 794 | #define BPF_TAG_SIZE 8 |