Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2168482pxb; Fri, 25 Mar 2022 12:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySzEVbQior17Tt3SMPTRBJ4qnJxv5Oj+ldEyfdJRmPbb4g11TvpiRSU3qz+/WHaN3PT4/P X-Received: by 2002:aa7:8893:0:b0:4fb:10e1:8976 with SMTP id z19-20020aa78893000000b004fb10e18976mr4777221pfe.36.1648235928287; Fri, 25 Mar 2022 12:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235928; cv=none; d=google.com; s=arc-20160816; b=X6rdt5QA9jCV2bXvXZdichwTgRRpE2LiFuyBpt/wrorE/KucQfK1ykIT03z1Ntk184 o07Qnl+UCBjz7GarmITVPd55z+AoFwmqwsnAlcq5Lihzg3D4fxpCLywf62vQviEKT3Nq 3elntUuBxJ8ABX88XXe3G8NpgL2/aFEalz84h6i7M8s1M35bpn5tfQgVKV+MBkpRaOYG Zenoq3z3FsUc0koDKuU86yvVXiZjgH5NKAuZLsS55T8F2gQvDuJDtED8RTpqWOEjmBh1 3kt7B8W0kk7dQQIh83ZWUfWq5lajA25Xi3i9X4lNt1j3ko1ORgYJ5nutAbPaxGnG8wA0 GjMA== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=jFDwMcIllWOoj/mFpbnGLqeFbi8jE9VmXsc1mr3U7BU=; b=kPQyEfs37us4bpLU0663dJD2Vybs1zBnpjS3kpVXBfMoxORfI6wjjbrtArwdxndcxT eCdIS3c8Iyf8pXbM5LsB3G7PBppriATrEVYNn2nD8VJZd0FaCLHWc+l2iR2xeAiS7qz1 eypXkm0O6+SSKWzX4eFawd5RzGmrPgFWRvHCLk8Lkio7C4Tj6KasMeqYRB8Ft6pZPrl1 hU1Skn/1QosDw2699Wzxi46goFQa6SAhJGB/HElqMO0XR6W992LW5y6Ow2C4V9wxeueD OR1Ib7eFSXx0z8zyswN9AYS6nUFH8BYj/r2jv+iw1eDpj/yQJHfz1XLriaHZ1zYcXMfO rRgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UokiijMM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c3-20020aa78e03000000b004fb04acde66si3405964pfr.250.2022.03.25.12.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:18:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UokiijMM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46EE824B0AD; Fri, 25 Mar 2022 11:24:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347786AbiCXChL (ORCPT + 99 others); Wed, 23 Mar 2022 22:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233051AbiCXChL (ORCPT ); Wed, 23 Mar 2022 22:37:11 -0400 X-Greylist: delayed 48606 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 23 Mar 2022 19:35:39 PDT Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27AE0939B3; Wed, 23 Mar 2022 19:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From; bh=jFDwM cIllWOoj/mFpbnGLqeFbi8jE9VmXsc1mr3U7BU=; b=UokiijMM9JGWLgM020Jvu F8mXEtPbR++QqKXzfbp7ZvfQgV8b7H1R5SzfddaM3Nbb4+/g6R1IppqyR7z7+R7T a9ZU4WPbhoxfpxij682+2bwN+NRHNqNNAolm2BEttQGx1MuHLBGi6tWeFzd/3Jnb zDbVpplG9eD9nhXKb/yyWg= Received: from [192.168.1.13] (unknown [120.36.172.115]) by smtp11 (Coremail) with SMTP id D8CowAB3jrKL2DtiQj3XBw--.62S2; Thu, 24 Mar 2022 10:35:21 +0800 (CST) Message-ID: Date: Thu, 24 Mar 2022 10:33:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH net-next] tcp: make tcp_rcv_state_process() drop monitor friendly To: Eric Dumazet Cc: David Ahern , Jakub Kicinski , Menglong Dong , netdev , LKML References: <3eb95fd0-2046-c000-9c0b-c7c7e05ce04a@163.com> From: Jianguo Wu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: D8CowAB3jrKL2DtiQj3XBw--.62S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKr1rGr43Gr17ur4xCF4DArb_yoWDZrXE9a n0vws7Gw15Xa4xXF4ktFWqqrWvgay8Jayjq3s3trn3uas3Z3sF9r4DKan7ua1jq3yIvFnI kFWYva1qkr13WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbFksJUUUUU== X-Originating-IP: [120.36.172.115] X-CM-SenderInfo: 5zxmxt5qjx0iiqw6il2tof0z/1tbiNxfMkFWBm7L9qAABsV X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, Thanks for your reply. This is more complicated than I thought, i will do some more dig. 在 2022/3/23 21:40, Eric Dumazet 写道: > On Wed, Mar 23, 2022 at 6:05 AM Jianguo Wu wrote: >> >> From: Jianguo Wu >> >> In tcp_rcv_state_process(), should not call tcp_drop() for same case, >> like after process ACK packet in TCP_LAST_ACK state, it should call >> consume_skb() instead of tcp_drop() to be drop monitor friendly, >> otherwise every last ack will be report as dropped packet by drop monitor. >> >> Signed-off-by: Jianguo Wu >> --- > > 1) net-next is closed > > 2) Same remarks as for the other patch. > You mark the packet as consumed, while maybe we had to throw away > some payload from it ? > > You will have to wait for net-next being open, > then send patches with one change at a time, with clear explanations > and possibly packetdrill tests. > > I am concerned about all these patches making future backports > difficult because of merge conflicts.