History

tc: bpf: generalize pedit action

existing TC action 'pedit' can munge any bits of the packet. Generalize it for use in bpf programs attached as cls_bpf and act_bpf via bpf_skb_store_bytes() helper function.

Alexei Starovoitov committed 11 years ago

Commit 608cd711 parent 7836b164 files · +73 −2Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -168,6 +168,7 @@ enum bpf_func_id { · 167 unmodified lines
168 BPF_FUNC_map_delete_elem, /* int map_delete_elem(&map, &key) */168 BPF_FUNC_map_delete_elem, /* int map_delete_elem(&map, &key) */
169 BPF_FUNC_get_prandom_u32, /* u32 prandom_u32(void) */169 BPF_FUNC_get_prandom_u32, /* u32 prandom_u32(void) */
170 BPF_FUNC_get_smp_processor_id, /* u32 raw_smp_processor_id(void) */170 BPF_FUNC_get_smp_processor_id, /* u32 raw_smp_processor_id(void) */
171 BPF_FUNC_skb_store_bytes, /* int skb_store_bytes(skb, offset, from, len) */
171 __BPF_FUNC_MAX_ID,172 __BPF_FUNC_MAX_ID,
172};173};
173 174

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