Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp156821imn; Wed, 27 Jul 2022 02:38:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sO37PIHl2OgYJoqGJuX7NWcF5ettnyzikF9mKV6t4FnCBLY/+NUU+B0Eq0RpuVgkLdVV4e X-Received: by 2002:a17:902:ab96:b0:16a:6db6:2715 with SMTP id f22-20020a170902ab9600b0016a6db62715mr21200768plr.141.1658914736029; Wed, 27 Jul 2022 02:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658914736; cv=none; d=google.com; s=arc-20160816; b=A1XiEgJUDXb1MGS0kij3YyFGcIIJAcQn4fPg831+4TQFPFgihfBdXZdTImwLEBuY5I BDaZUDpLTZH9iUtftXfciI9GfDuD93vLbS5yysZGeJHg+YZ1EvdLaiw2LffeQ1P7pt7q yntXIWM3XRuOUpWHE9jXqSRx02fEV0mh5U2QZwFpymx2cmHaS5eXbn/C0ZtPONh4Rfyl rul+3IdQWB1LA7oBZnxY/rmSfhGbYPfFOiNB/j0B2Z2j+2rP5sqOpu6fD2ZXE6ValyfU 8VakC5CCydyRoHIOP32P8RdwpQzgje3aEWShrix7wkdP5OaHvAJ16o+Bf86tF/9ZVsdw TkiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6GV9r+xMhkzrix1zVwuoFAT+2lz1nxuiG9jX5dFRLKs=; b=UVZCb5tZJVu/4M/6cKrI3WweImDxn34swO/eHpalxyVO70x7HkiIZDJONI2HWtyix4 Gb2nDfXdCe0zGcoCiDYEh6zKoFNGAkB0jEKHc+PzgR3z0l7ikgD7F0DblJ1/suU8izSL BTyx3ECGhgd/w93X9E/MPtPZD1HZuL80ns1TjSL4Fv/HAgQlSxzLEh2lI7CkWwMv11hu VvkQBWdA+2RD1q3HnwXQFlEyQj2iQnqGHH0xfYGKHgAqcd/BZYK7ggov61uBAkqfvRDR ilA71/kxElyBa03coT/K0rj1w9865bMcHPkzO0KrobyQGLzbyEvh4zekq3MjAnOLIudW RMFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jBli6wkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w189-20020a6282c6000000b00528b9bb5d32si19053241pfd.30.2022.07.27.02.38.40; Wed, 27 Jul 2022 02:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jBli6wkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231623AbiG0JUH (ORCPT + 99 others); Wed, 27 Jul 2022 05:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbiG0JUF (ORCPT ); Wed, 27 Jul 2022 05:20:05 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08D937FB7; Wed, 27 Jul 2022 02:20:04 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id h8so23307133wrw.1; Wed, 27 Jul 2022 02:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=6GV9r+xMhkzrix1zVwuoFAT+2lz1nxuiG9jX5dFRLKs=; b=jBli6wkJvQPrlTu9I8L+7p+WAj9MTjQl4w5ECDX5sx3eT2wtgzR6bvLDoHk0lyZdCt gonJKGM73VpyIANTBCwXOcgi7mT1+Y6P2CkLcessQmvcQYdW2V3HB4d/rX/MSYStA5i1 snT/HQWrN8Ep6AR+ITz8QEd2DP6uuEmblbehyVhnxwFb0p0iolZiKLtVzJexu7xvRLxA vdI5B6RoEFwOl5TaBfcmhMk7phrzjekKTjPkyaHE8lizwcSYTUJMhzizGoKXpuWAqPLf 2lgDlMaQeYLxq63+shVdWeKAfaamT9G47fztwMlDbz41Y+RUIUXqznkc01t6W/WrpHTk u7Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=6GV9r+xMhkzrix1zVwuoFAT+2lz1nxuiG9jX5dFRLKs=; b=smaTSizG3aGUHe3fRagmbG++XVboZ1MCTN+k/WLXrq4njd6Q4EcrcdklHlBT8ctSzG 8xv09dSaTLCJR9EtYkXiXe2nVrISVa4i2LTJDCfaavDcZAJyIdIUOh/QnMsuWGABrDBl WBeuPTo1b0ML59AUmIjNV3oWyzcWZqQR/AXb0yO0t4UPcGYQzN524WUDxvjIkF3p14Kn 5ywTInEg6n95PJHbGdEECkrWR077383XGDSn1XfT0CwV4hYxjnhTEq+/mEPjr5MHQHqL FllUAHQkeUlnKcWFf78V28Y9iQwALE8QoECVKuq+107g3lk0hqRQBKGgMLYAMUprhUVC DfDA== X-Gm-Message-State: AJIora9AsCPmzlqwq3ROeDZ/BttIobBJuxnidSgW9HxidDmSp0zRlV8Y nAkPTSY8Lb6WAo4+cETNrRg= X-Received: by 2002:a5d:64ec:0:b0:21e:92fe:ac77 with SMTP id g12-20020a5d64ec000000b0021e92feac77mr7032343wri.24.1658913602956; Wed, 27 Jul 2022 02:20:02 -0700 (PDT) Received: from ?IPV6:2620:10d:c096:310::22ef? ([2620:10d:c092:600::2:5b44]) by smtp.gmail.com with ESMTPSA id bi26-20020a05600c3d9a00b003a2eacc8179sm1740076wmb.27.2022.07.27.02.20.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 02:20:02 -0700 (PDT) Message-ID: Date: Wed, 27 Jul 2022 10:18:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH net-next v5 27/27] selftests/io_uring: test zerocopy send Content-Language: en-US To: dust.li@linux.alibaba.com, io-uring@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Jakub Kicinski , Jonathan Lemon , Willem de Bruijn , Jens Axboe , David Ahern , kernel-team@fb.com References: <03d5ec78061cf52db420f88ed0b48eb8f47ce9f7.1657643355.git.asml.silence@gmail.com> <20220727080101.GA14576@linux.alibaba.com> From: Pavel Begunkov In-Reply-To: <20220727080101.GA14576@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 7/27/22 09:01, dust.li wrote: >> +static void do_test(int domain, int type, int protocol) >> +{ >> + int i; >> + >> + for (i = 0; i < IP_MAXPACKET; i++) >> + payload[i] = 'a' + (i % 26); >> + do_tx(domain, type, protocol); >> +} >> + >> +static void usage(const char *filepath) >> +{ >> + error(1, 0, "Usage: %s [-f] [-n] [-z0] [-s] " >> + "(-4|-6) [-t