History

bpf: remove SK_REDIRECT from UAPI

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

John Fastabend committed 9 years ago

Commit 04686ef1 parent 14fc0ab3 files · +13 −7Browse files

Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+1−2
@@ -576,7 +576,7 @@ union bpf_attr { · 575 unmodified lines
576 * @map: pointer to sockmap576 * @map: pointer to sockmap
577 * @key: key to lookup sock in map577 * @key: key to lookup sock in map
578 * @flags: reserved for future use578 * @flags: reserved for future use
579 * Return: SK_REDIRECT579 * Return: SK_PASS
580 *580 *
581 * int bpf_sock_map_update(skops, map, key, flags)581 * int bpf_sock_map_update(skops, map, key, flags)
582 * @skops: pointer to bpf_sock_ops582 * @skops: pointer to bpf_sock_ops
@@ -789,7 +789,6 @@ struct xdp_md { · 206 unmodified lines
789enum sk_action {789enum sk_action {
790 SK_DROP = 0,790 SK_DROP = 0,
791 SK_PASS,791 SK_PASS,
792 SK_REDIRECT,
793};792};
794 793
795#define BPF_TAG_SIZE 8794#define BPF_TAG_SIZE 8

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t