Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4532775ioa; Wed, 27 Apr 2022 06:01:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg/GQ/K1nYm97hAgW/QLu/RmCFUniaeX2wHyN/X1/zXEEpMqCuUNPHfq4ZFOcEC0XwKEKc X-Received: by 2002:a05:6808:f87:b0:325:5428:2de5 with SMTP id o7-20020a0568080f8700b0032554282de5mr4959420oiw.100.1651064470706; Wed, 27 Apr 2022 06:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651064470; cv=none; d=google.com; s=arc-20160816; b=pLiC+38rwurudteGStufN28Pdl2Kvd7KYY9O0dGkiqrKnpKXNCDs0LCr3/uZBxf3c6 edxJAI19UmkUdM6DeFLvRMD0LbbOC9F5BH0XLj8i/LIEiYX+ztibg6HpRf8GFQEgYFmg TzU6w0+qDEppIPFoyJP0R8PsgcXELoKLNxQ/jAuti7FQfHRAxQ0BHpuPbahosTxTTOK5 CEGRZXZBARwSnV/6CJY0cZQCTPgBvpEerB3IAh00RpmxsQPlry+BNlzsaBHAe1vz9jbo TRM/exl1RMvQUdFpgOh1P2zc6vSn7ti9JwZI+gxr6P2I4QX18zmHRQFp175g2axViwwG X4xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=QhjU78vPgP2B0o9HSHSvUPwX0xOUXidLy37fbV3bx2A=; b=I/KEeyLAmkdp7S73jNdQEkqWRK5WlO0aVAwxVXCUeZu3IgF/S2gy+HEHtheh71YbeT KfyuS7l9BaurDMXG0+WT4yUiGq458zsVCDsNwVO1dlniVJCHd+DYKjAMgmy/fb5Vptbc dRRS4QLv08yi8ENrjJlL8nWL5wYysAsvXjrLqbHGZsc4JBRre0g03RBgoaaIWFpxkIFc eB1DWjm6qEdCJUY/k83Z9shk2zouR1bndu4oBOQGYxwKRQHmPllnvC6S+RC785izy4Ug O03Ydo5OIsWFiTzdUJ4wOiTW8XmapDkAAx4durslDrry23cPqr+C5QV+rEwwFagrCDhV HA4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k17-20020a056830169100b005cb2fc13812si727478otr.142.2022.04.27.06.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 06:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C2E3A532E5; Wed, 27 Apr 2022 05:35:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234362AbiD0MiR (ORCPT + 99 others); Wed, 27 Apr 2022 08:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbiD0MiP (ORCPT ); Wed, 27 Apr 2022 08:38:15 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77CF50E3A; Wed, 27 Apr 2022 05:35:03 -0700 (PDT) Received: from sslproxy04.your-server.de ([78.46.152.42]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1njgse-000Bll-3T; Wed, 27 Apr 2022 14:34:52 +0200 Received: from [85.1.206.226] (helo=linux.home) by sslproxy04.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njgsd-000Gt8-Hj; Wed, 27 Apr 2022 14:34:51 +0200 Subject: Re: [PATCH v5 1/3] selftests: bpf: add test for bpf_skb_change_proto To: Lina.Wang@mediatek.com, "David S . Miller" , Jakub Kicinski , Paolo Abeni , Shuah Khan , Matthias Brugger Cc: Alexei Starovoitov , Andrii Nakryiko , Jesper Dangaard Brouer , Eric Dumazet , linux-kernel@vger.kernel.org, Maciej enczykowski , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org References: <9dc51533-92d2-1c82-2a6e-96e1ac747bb7@iogearbox.net> <20220418015230.4481-1-Lina.Wang@mediatek.com> From: Daniel Borkmann Message-ID: Date: Wed, 27 Apr 2022 14:34:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20220418015230.4481-1-Lina.Wang@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26525/Wed Apr 27 10:19:41 2022) X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/18/22 3:52 AM, Lina.Wang@mediatek.com wrote: [...] >> OT: In Cilium we run similar NAT46/64 translation for XDP and tc/BPF >> for our LB services [4] (that is, >> v4 VIP with v6 backends, and v6 VIP with v4 backends). >> >> [4] >> https://github.com/cilium/cilium/blob/master/bpf/lib/nat_46x64.h >> >> https://github.com/cilium/cilium/blob/master/test/nat46x64/test.sh > > It is complicated for me, my case doesnot use XDP driver.I use xdp_dummy > just to enable veth NAPI GRO, not real XDP driver code. My test case is > simple and enough for my patch, I think. I have covered tcp and udp, > normal and SO_SEGMENT. Ok, fair enough, then lets resend with the minor fixups as discussed earlier and worst case we can do the test_progs integration at a later point to avoid blocking the fix. At least there is something runnable under net/bpf selftests.. even if not yet in BPF CI but we can follow-up on it later. Thanks Lina!