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
576576 * @map: pointer to sockmap
577577 * @key: key to lookup sock in map
578578 * @flags: reserved for future use
579− * Return: SK_REDIRECT
579+ * Return: SK_PASS
580580 *
581581 * int bpf_sock_map_update(skops, map, key, flags)
582582 * @skops: pointer to bpf_sock_ops
@@ -789,7 +789,6 @@ struct xdp_md { · 206 unmodified lines
789789 enum sk_action {
790790 SK_DROP = 0,
791791 SK_PASS,
792− SK_REDIRECT,
793792 };
794793
795794 #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