[PATCH v3] net: fix wrong network header length

Alexei Starovoitov alexei.starovoitov at gmail.com
Wed Feb 16 19:05:07 PST 2022


On Tue, Feb 15, 2022 at 11:37 PM Lina Wang <lina.wang at mediatek.com> wrote:
>
> When clatd starts with ebpf offloaing, and NETIF_F_GRO_FRAGLIST is enable,
> several skbs are gathered in skb_shinfo(skb)->frag_list. The first skb's
> ipv6 header will be changed to ipv4 after bpf_skb_proto_6_to_4,
> network_header\transport_header\mac_header have been updated as ipv4 acts,
> but other skbs in frag_list didnot update anything, just ipv6 packets.

Please add a test that demonstrates the issue and verifies the fix.



More information about the Linux-mediatek mailing list