-
由 Ziyang Xuan 提交于
maillist inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I6EW1Q CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=d219df60a70ed0739aa5dd34b477763311fc5a7b -------------------------------- Add ipip6 and ip6ip decap support for bpf_skb_adjust_room(). Main use case is for using cls_bpf on ingress hook to decapsulate IPv4 over IPv6 and IPv6 over IPv4 tunnel packets. Add two new flags BPF_F_ADJ_ROOM_DECAP_L3_IPV{4,6} to indicate the new IP header version after decapsulating the outer IP header. Suggested-by: NWillem de Bruijn <willemb@google.com> Signed-off-by: NZiyang Xuan <william.xuanziyang@huawei.com> Reviewed-by: NWillem de Bruijn <willemb@google.com> Link: https://lore.kernel.org/r/b268ec7f0ff9431f4f43b1b40ab856ebb28cb4e1.1673574419.git.william.xuanziyang@huawei.comSigned-off-by: NMartin KaFai Lau <martin.lau@kernel.org> Conflicts: include/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h Signed-off-by: NZiyang Xuan <william.xuanziyang@huawei.com>
54ba1239