Thread (3 messages) flat view 3 messages, 3 authors, 2021-03-05

Re: [PATCH/v5] bpf: add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_ENCAP_L2_ETH

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2021-03-04 13:57:40
Also in: bpf, lkml

On Thu, Mar 4, 2021 at 1:41 AM Xuesen Huang [off-list ref] wrote:
From: Xuesen Huang <redacted>

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 <redacted>
Signed-off-by: Zhiyong Cheng <redacted>
Signed-off-by: Li Wang <redacted>
Acked-by: Willem de Bruijn <willemb@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help