Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp94153pxb; Wed, 23 Mar 2022 13:48:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYVKZqmcJO6xNCIu6fZ6fhV/Krdfod68a58UG37IWj7py/R4waq0vv9Olt9HAChAHx3cUP X-Received: by 2002:a05:6402:40c5:b0:418:e73c:a1ab with SMTP id z5-20020a05640240c500b00418e73ca1abmr2638619edb.52.1648068513909; Wed, 23 Mar 2022 13:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648068513; cv=none; d=google.com; s=arc-20160816; b=E3WgUWmcayz5WHoO6y0jP2epCok1EGsqLE6P7CMfCfBtnVX3j5EvcwTjEdss+N0k1w 3dIVBeJrDShvnfbwNbqQ/ukaAsYMZrnaB2FAdhwRwUNU1gbxJZRa+aJqe2f3yIxlx4Dh KlNQsL6PYqSTawrnFCFlyCr9rLewxz8Lhvc4wchzzjn0npUXHtMqR/RRA8Ch01/efVOd sOMb+SzevYhjfFBqsxyDbYy9iG/3sYmuhI3qvQucDPVXvVhS2pbHQ5x7+6lGD+WV5ElC 3EtDMZ9QWjIv+hZDQZoAmyQNDpRwt39AW2OFo/84XOS40LWFJZsimopjVNW+sERf35VY aqDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9jCDAcUtteKlAN5udZM1zvoRPaSXlwCPmGJqPYhPGNk=; b=rbzsF3WqHq6Ot7Ieogfl1CP+/8LnLyrhao/qpO1VVxj0L8Rx/hku/lncpSF+MjMdPl XazfXZCbwngh0KiLQ2no9bonfzOKQb7wIKjsTcadfnYU1YbMl9EEuuCn4/fPCorQcGft FzYqKyJyuDKVYKUlyTRLGpkH3kCiWcXMGWkxs7www/1O+cQdW5siBOKYub+0G4FSJPtF ictSy153dlLx3ea1tg3J6wF+oQ2YQC055owpkP5rB3lbC65N52rWAHVmi73yir3PjniP xdzHVgu023rDURG8EgDbRru8moKKvPKCBB0pRQpREL0PrO+pJdRFAwLr+H6rme3pb+b5 Jjcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Nv5l3nkA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a50aa97000000b004193047b585si9385418edc.341.2022.03.23.13.48.07; Wed, 23 Mar 2022 13:48:33 -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=@google.com header.s=20210112 header.b=Nv5l3nkA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244104AbiCWNmj (ORCPT + 99 others); Wed, 23 Mar 2022 09:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244427AbiCWNmf (ORCPT ); Wed, 23 Mar 2022 09:42:35 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7893D7DE0B for ; Wed, 23 Mar 2022 06:41:04 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-2e5969bdf31so17316047b3.8 for ; Wed, 23 Mar 2022 06:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9jCDAcUtteKlAN5udZM1zvoRPaSXlwCPmGJqPYhPGNk=; b=Nv5l3nkAfmDXMDqGcxm6rv77B/vDaPFKLwxNIYW1dXBIIP4MIpW0nqUD9X0R8tlL8O T2SRHm5VUnTa4/pQ3L0z9tu8tAnHAuDuhMeBi5GMba7zhajevoECEAg+NDV1Vsa3fj79 K7YHw7NTMuZ1crmk8vSOBoMXn1ChM/JmI7y/gZWJt8niLU5QQyFuiDRZ4J7Imd57Z8VL pBVmkkmZxFRW2TEOSEBEj/ZbvZ00JU5yOeLmzsTjxuZq1EPRWAzqbLDPsLwsN2RJf8KK hoENJcFu6htu42K6IRvony/ygkmMdl7JhqY3YyEtJOw7LZmR+RBl0gxtfHIGTOwbmjnD nxtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9jCDAcUtteKlAN5udZM1zvoRPaSXlwCPmGJqPYhPGNk=; b=Lbf+r43v2crhP5R3JKN/7kGp6F2jof5C5RqZFLZku7vhqIGtPjnbbdznDJ8w4sw1wa AfcFCxlSgfd8xuP/utWnBJ5+E0rnWO3WCdHaBlnltUeXQ8wDvCiedWgDM6kcBnw6c7v5 gn/oSQ5O+FPW2Yz5gTjQtNaXUhY4xOzZFwBg/ftr993zM55wkEqOh2D71yTXN+1lr6uF SfCXAT3lkaqf8gITO4piK8TvfwU/lWah/vNS7zjNf7Jg+6NYkqRB2wGrkqHpgZAKMjOb +SDI51aEGdhbq6gsDJGtyiS7Rt1+IooGITS8qm6leHTV7z9CbDUgcQk1Cyw2+FwImeS5 tF9A== X-Gm-Message-State: AOAM5304XuZ8IBN7iuWt9lTlAkKVU6cXavoIEQW6DEkN4/HQ6DO9PVn/ wWcyzCWusLIvJ3tW8cHATZziUuVo+ESXHacZz5Xo+A== X-Received: by 2002:a81:680a:0:b0:2e5:b7ba:f8ee with SMTP id d10-20020a81680a000000b002e5b7baf8eemr34162743ywc.55.1648042862993; Wed, 23 Mar 2022 06:41:02 -0700 (PDT) MIME-Version: 1.0 References: <3eb95fd0-2046-c000-9c0b-c7c7e05ce04a@163.com> In-Reply-To: <3eb95fd0-2046-c000-9c0b-c7c7e05ce04a@163.com> From: Eric Dumazet Date: Wed, 23 Mar 2022 06:40:51 -0700 Message-ID: Subject: Re: [PATCH net-next] tcp: make tcp_rcv_state_process() drop monitor friendly To: Jianguo Wu Cc: David Ahern , Jakub Kicinski , Menglong Dong , netdev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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.