diff options
| author | David S. Miller <davem@davemloft.net> | 2015-07-20 20:52:32 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-07-20 20:52:32 -0700 |
| commit | 500322ec418171a1d067cfd8a3b0fde4b6eb7257 (patch) | |
| tree | 0eeec6acd33f939f37b4b67722b4588d5a88b304 /include/uapi/linux | |
| parent | f3120acc7851bffd1cd15acd044b7fa6fa520e75 (diff) | |
| parent | 4d9c5c53ac99e4cb5d031897863203d7817b36e0 (diff) | |
Merge branch 'bpf-push-pop-helpers'
Alexei Starovoitov says:
====================
bpf: introduce bpf_skb_vlan_push/pop() helpers
Let TC+eBPF programs call skb_vlan_push/pop via helpers.
v1->v2:
- reworded commit log to better explain correctness of re-caching
and fixed comparison of mixed endiannes (suggested by Eric)
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 2de87e58b12b..2f6c83d714e9 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -256,6 +256,8 @@ enum bpf_func_id { * Return: classid if != 0 */ BPF_FUNC_get_cgroup_classid, + BPF_FUNC_skb_vlan_push, /* bpf_skb_vlan_push(skb, vlan_proto, vlan_tci) */ + BPF_FUNC_skb_vlan_pop, /* bpf_skb_vlan_pop(skb) */ __BPF_FUNC_MAX_ID, }; |
