From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84EB1C433EF for ; Fri, 18 Feb 2022 02:29:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbiBRC3c (ORCPT ); Thu, 17 Feb 2022 21:29:32 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:33166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbiBRC3c (ORCPT ); Thu, 17 Feb 2022 21:29:32 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43BB1BF3; Thu, 17 Feb 2022 18:29:16 -0800 (PST) X-UUID: 08657ab6883d452fa20ea281cf2356aa-20220218 X-UUID: 08657ab6883d452fa20ea281cf2356aa-20220218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1321124463; Fri, 18 Feb 2022 10:29:13 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Fri, 18 Feb 2022 10:29:12 +0800 Received: from mbjsdccf07.mediatek.inc (10.15.20.246) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 18 Feb 2022 10:29:08 +0800 From: Lina Wang To: Alexei Starovoitov CC: "David S . Miller" , Jakub Kicinski , Matthias Brugger , Paolo Abeni , Daniel Borkmann , Andrii Nakryiko , Network Development , LKML , linux-arm-kernel , bpf , =?UTF-8?q?Maciej=20=C5=BBenczykowski?= , Willem de Bruijn , Eric Dumazet Subject: Re: [PATCH v3] net: fix wrong network header length Date: Fri, 18 Feb 2022 10:23:15 +0800 Message-ID: <20220218022315.2560-1-lina.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, 2022-02-17 at 09:05 -0800, Alexei Starovoitov wrote: > On Thu, Feb 17, 2022 at 12:45 AM Paolo Abeni > wrote: > > To clarify: Alexei is asking to add a test under: > > > > tools/testing/selftests/net/ > > > > to cover this specific case. You can propbably extend the existing > > udpgro_fwd.sh. > > Exactly. > I suspect the setup needs a bit more than just iperf udp test. > Does it need a specific driver and hw? My hw is Android phone, Android system has improved clatd with bpf. When clatd starts, cls_bpf_classify will handle ingress packets with bpf progs. bpf_skb_proto_6_to_4 is used here. > Can it be reproduced with veth or other virtual netdev? I am not sure. I have no idea how to verify it in linux system. > Also commit talks about bpf_skb_proto_6_to_4. > So that bpf helper has to be somehow involved, but iperf udp test > says nothing about it. > Please craft a _complete_ selftest. Thanks!