diff options
| author | Xuesen Huang <[email protected]> | 2021-03-04 06:40:46 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-03-05 15:59:00 +0000 |
| commit | d01b59c9ae94560fbcceaafeef39784d72765033 (patch) | |
| tree | 8fc796fd568840b20623f9a06ca10760db097a64 /scripts/bpf_doc.py | |
| parent | selftests/bpf: Simplify the calculation of variables (diff) | |
| download | kernel-d01b59c9ae94560fbcceaafeef39784d72765033.tar.gz kernel-d01b59c9ae94560fbcceaafeef39784d72765033.zip | |
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 <[email protected]>
Signed-off-by: Xuesen Huang <[email protected]>
Signed-off-by: Zhiyong Cheng <[email protected]>
Signed-off-by: Li Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
