Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4697175rwb; Tue, 20 Sep 2022 18:57:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qIvBSOTiQ7L8QHViqSCF1zdyBAy5q9V8TxXeYMT0yMH3Vum31YcFEc85iR+lg5r057FxF X-Received: by 2002:aa7:cd14:0:b0:44e:2335:fb90 with SMTP id b20-20020aa7cd14000000b0044e2335fb90mr22019015edw.152.1663725463600; Tue, 20 Sep 2022 18:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663725463; cv=none; d=google.com; s=arc-20160816; b=XP/3SnquCyHKeQhnC7fF5ytsbnTK2FXkN+nxmQ/VguatsojjJkEThaVhgdhX053D11 PZ4+FS1EnrZ5ZpoTnFsS/C5PNz7E/pWimJRzKU+ZJi1+k3beA7HgSdrROvhCgvhx41oR Qx63xXfojVde/yusC0nznds/PXwui+iG6TEf2LShXJZBP3IDuK1NbVU5NpMoYXhf0bkn WQyQ3lHPaeYM0qd4nxWXKJlozkbjP8bhmN64l2TkaT8lg8muPiQ8CHVoQGAr1G5mZX/P fMaRwco5KxnaC4/Ll9lInxQK6bLTeMrA/6ZGPRAqoWO5DP10+YpyqiICHVFhpuCmikdt Ot/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NpSOfoxet6fpFE78x3YM7TEF5iWYleKq0HWQ8JXp4es=; b=f1m09xYx6HUPYLG5CvVNkdzGV1V+yOX0vWyYNiVNhj3ItqheCn3xZsovv9DSfh50SW 3/NmA3jawz78ekhj0xn5ajoy7KeZeYYcRuoRb+kASghSg86BUI/4yDK9Tlz8u1+wAiBY gUNrQhrbq9ODGBeD9gO2TyP9C3KuJYDgW7bquf9pzI1GXVaICVfBgM5+XXOuTVOgfNpd +qLJGlku17AjbigMyVqEP22fw1cW7m0KXPnz5k8e+fihM4lGM3gtGvwHIlp/rbuIDYBB KVauAAZBwWylcefOn/TaiXtBrbLUcFiwnbfCyriZMmvq1w/UGuquNwdAO4u2M5e23/Gu nstw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L+vbQVXy; 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 u17-20020a50c051000000b0043e81c582d2si1231502edd.232.2022.09.20.18.57.17; Tue, 20 Sep 2022 18:57:43 -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=L+vbQVXy; 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 S231244AbiIUBFb (ORCPT + 99 others); Tue, 20 Sep 2022 21:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiIUBF3 (ORCPT ); Tue, 20 Sep 2022 21:05:29 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538BD17AA9; Tue, 20 Sep 2022 18:05:28 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id cj27so3099958qtb.7; Tue, 20 Sep 2022 18:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=NpSOfoxet6fpFE78x3YM7TEF5iWYleKq0HWQ8JXp4es=; b=L+vbQVXyN74JEnV20w0WoCNLCR0ZWgmXoDrA9JRcwvYNiXt1Nrb55mlCQph+16Y3HI AIbs//xJzjYl80dj8xINDTazyeU+Tk2Ck/bKWtEhzGD97Xzvhkh9R8tJhgGnwo4qKv/b cnBt5/QnrbaaUWPnzahD4M5V1ZJgjtMQDHAygpvhKxzvP4YyhPDUThmgtvumvp24KGOl O6YG4XB8412LfsiaMq6wSrjZbvLwxT173iNZhExISe99ih7W/xvO27TQ3YpF7hAAN2UQ lGdRqjhgcJOJKGRyV6he1XqdDVK76G/yC+9ALyqLdDNfg9OY+hkvCM+fZlUxERfTbvd1 q3ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=NpSOfoxet6fpFE78x3YM7TEF5iWYleKq0HWQ8JXp4es=; b=PYZP5BImtBA0/2Bh7cORVPMT7pE1A+l9kD4KPeSVdshBePoq5zUAIYB4xVz1VAAFzE vXoWHBzQDCGGWPD0tIhxcLzPxTjrUvC2/flCRDpEH4kXO9FgvHRQUPM/tCtXjgK+aoDa 9qswYwJa8tVathd3PR4/4DrBsoGKWo1DyW4n/MVGRBHn0Cnh2FYi26i8J7AkdD89pBps pWw36kJmTzIKE/NnatqSaYccVlzoUy0zV+HVYQnoG16hS0lBFtwKoDIKIuoMoBzY68Mi ffCwaW2WItWOK3M+6RfyaMdJC8/AbI25M1pyJVZ2YYH2pniuEkToELdKWNBofSz0ZzlJ 7rfA== X-Gm-Message-State: ACrzQf3fbS/GqgeI4m9CDxjhFi3iJErkTcg7eTEUdunnFCu1JPWE7lnP Zvlt7uDQnIIatcHGmxBfYQ== X-Received: by 2002:a05:622a:110b:b0:35c:d403:6d95 with SMTP id e11-20020a05622a110b00b0035cd4036d95mr19170291qty.495.1663722327486; Tue, 20 Sep 2022 18:05:27 -0700 (PDT) Received: from bytedance (ec2-3-231-65-244.compute-1.amazonaws.com. [3.231.65.244]) by smtp.gmail.com with ESMTPSA id bn29-20020a05620a2add00b006bbf85cad0fsm881171qkb.20.2022.09.20.18.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 18:05:26 -0700 (PDT) Date: Tue, 20 Sep 2022 18:05:23 -0700 From: Peilin Ye To: Jakub Kicinski Cc: Eric Dumazet , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Paolo Abeni , Peilin Ye , Cong Wang , Kuniyuki Iwashima , Alexei Starovoitov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 1/2] udp: Refactor udp_read_skb() Message-ID: <20220921010523.GA2835@bytedance> References: <03db9765fe1ef0f61bfc87fc68b5a95b4126aa4e.1663143016.git.peilin.ye@bytedance.com> <20220920173859.6137f9e9@kernel.org> <20220920174052.47d9858b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220920174052.47d9858b@kernel.org> 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, 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 Tue, Sep 20, 2022 at 05:40:52PM -0700, Jakub Kicinski wrote: > On Tue, 20 Sep 2022 17:38:59 -0700 Jakub Kicinski wrote: > > On Wed, 14 Sep 2022 01:15:30 -0700 Peilin Ye wrote: > > > Delete the unnecessary while loop in udp_read_skb() for readability. > > > Additionally, since recv_actor() cannot return a value greater than > > > skb->len (see sk_psock_verdict_recv()), remove the redundant check. > > > > These don't apply cleanly, please rebase? > > Ah, it's the WARN_ON_ONCE() change. In that case please resend after > net is merged into net-next (Thu evening). Sure, but only the TCP part was merged [1] into net. I just sent the UDP part again [2], and will resend this patchset after both [1] and [2] are merged into net-next. Thanks! [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=96628951869c0dedf0377adca01c8675172d8639 [2] https://lore.kernel.org/netdev/20220921005915.2697-1-yepeilin.cs@gmail.com/T/#u Peilin Ye