diff options
author | Xuesen Huang <huangxuesen@kuaishou.com> | 2021-03-04 14:40:46 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-03-05 16:59:00 +0100 |
commit | d01b59c9ae94560fbcceaafeef39784d72765033 (patch) | |
tree | 8fc796fd568840b20623f9a06ca10760db097a64 /scripts/bpf_doc.py | |
parent | bce8623135fbe54bd86797df72cb85bfe4118b6e (diff) |
bpf: Add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_ENCAP_L2_ETH
bpf_skb_adjust_room sets the inner_protocol as skb->protocol for packets
encapsulation. But that is not appropriate when pushing Ethernet header.
Add an option to further specify encap L2 type and set the inner_protocol
as ETH_P_TEB.
Suggested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Xuesen Huang <huangxuesen@kuaishou.com>
Signed-off-by: Zhiyong Cheng <chengzhiyong@kuaishou.com>
Signed-off-by: Li Wang <wangli09@kuaishou.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/bpf/20210304064046.6232-1-hxseverything@gmail.com
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions