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

From
Cong Wang <hidden>
Date
2021-02-26 20:29:05
Also in
bpf, lkml
Reply to
Xuesen Huang, 2021-02-26
On Thu, Feb 25, 2021 at 7:59 PM Xuesen Huang [off-list ref] wrote:
v3:
- Fix the code format.

v2:
Suggested-by: Willem de Bruijn <willemb@google.com>
- Add a new flag to specify the type of the inner packet.
These need to be moved after '---', otherwise it would be merged
into the final git log.
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>
---
 include/uapi/linux/bpf.h       |  5 +++++
 net/core/filter.c              | 11 ++++++++++-
 tools/include/uapi/linux/bpf.h |  5 +++++
 3 files changed, 20 insertions(+), 1 deletion(-)
As a good practice, please add a test case for this in
tools/testing/selftests/bpf/progs/test_tc_tunnel.c.

Thanks.
Thread (3 messages) 3 messages, 3 authors, last reply 2021-02-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help