Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp340202pxb; Wed, 23 Mar 2022 19:59:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxGzrJsrOQGRa7Ry2RFviAjeyvVB4CNVsXz06c6IEZlSfH9uYgRe3thUKalIsKFeFMzOBg X-Received: by 2002:a17:902:ecc6:b0:154:5393:aa98 with SMTP id a6-20020a170902ecc600b001545393aa98mr3446567plh.88.1648090796603; Wed, 23 Mar 2022 19:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648090796; cv=none; d=google.com; s=arc-20160816; b=U4OS+GOBZBVfv3ebvmvFaeS9Kw/vpvAhZC6BCn5MLI03VyM1EUgpUAmWgETEInkExY 00uHj5HxKuiuT4DQNtUd3D+SHUNoRMwoLxUzueTttAYCKZ2tIOKxUpBHzEpvIp0/rnCr YhqpL2AIKXQjg5/42o37JCyY+Ql0mCR6cc7icZ9HGpX8T0IGPQTNd0gNPd1LQ4h8nIa0 OBw5jxF7XBYnN4VUrv9o0/MK/K9cMFonwOlx8Igws/pvGuPrhhFheRihE1vUiUYVdABh A8/Vie+twC3jQe2BMoJAy3P8jLBgAMNexnPtb3yZSQu3q61o9Df4ACIDev0+DOcKUntU 1DDA== 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=Z7oawa2AY57m2xBNWTaEFL3ZAO7yqhBtsuz3WE96h5o=; b=C0Kmqp1Bv6OkrISJiIzPSYMjlIOKG6O8dCqaCGAEkGgoXfl5JN+1AbbGg7ikY67T01 6oC5iox+8C/JhUkHPG4Borc4oW7P+kO/RmEbaGOHt5Hm1TsVOvqBVfVyVWw/qLW92Tk7 HUvwJ1ngiSCWzndnIfbLDcHMHaAUxbD+IbDzbC0aCIUPvcPG0CDC1XJtfHlgIlPck6TS LPe+o0GW3Z6LFM8oW7GxEN44tLeT5QTYXdI6QOl2pA9QVMd/SqHB29Qa39Jn89dsnhV9 xgh1YxMEpkCC2uBDOyGUT+BmUZLJ6i9zHkmPMnKQtzH+QHjTyTk0TuJjgMwtcf20Xcgp e8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WG6b+izb; 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 bu12-20020a056a00410c00b004fa93574a9asi12426030pfb.341.2022.03.23.19.59.43; Wed, 23 Mar 2022 19:59:56 -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=WG6b+izb; 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 S236611AbiCWN13 (ORCPT + 99 others); Wed, 23 Mar 2022 09:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232560AbiCWN1Z (ORCPT ); Wed, 23 Mar 2022 09:27:25 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED76522F0 for ; Wed, 23 Mar 2022 06:25:55 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2e5827a76f4so16900567b3.6 for ; Wed, 23 Mar 2022 06:25:55 -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=Z7oawa2AY57m2xBNWTaEFL3ZAO7yqhBtsuz3WE96h5o=; b=WG6b+izbQ6vRlRg1kHzR8Hso6XWGHQmvm5bR3JDsIjTSzHbcoRHVDgcrB66VsgSaOJ yY4VzstDQy6L07tda/xDjSBOMNQi6c/sPgZoSuHk5bc+jgqZvZuabgJu2eet8XbwH6Ht HqtTVWvnVmxiHdZDM4TpXGbjowiNYP1TCoSCbuVxWjfChWUXprL0MoKXfhUNB3W/I40n 264gV6ZCFTG9YCmhl7YZSP4YLo3Nim1fbc4X6k1mB8KL2np0QCrySr8K0y/ITB3ZgwQf sG8LX1dHNH0slb4ntL76PAGQXlWelY/NS7o8RjNg5Am19uFyHADjCOcVLbuL6Ev6RDb7 QX3Q== 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=Z7oawa2AY57m2xBNWTaEFL3ZAO7yqhBtsuz3WE96h5o=; b=t10KkZYUvhMp2l+8WFOlBqCqBR/Ws2VYaeP51LxmY3xna0Ry2aUSy2g61xEUr+DOCU MP0hIoSQwbm6WBYmz6uEVV9ryEpGYpsg/8CdWJwyzEUI5g5b1VjwCu0axp9vnu79Uzge 7xugla92n4sMJgp9K+OVA06xE8LjrWB9MHaJbcKAh9ynIUfR7B8mzZwS2EVDhthgVqQd UxCMjMC7t7QtFpF2BX6Wp6j2nSamjBjOBYlAEezNobMZ6ALDa5ExgTm+67dI28xP/1qC 0aWE9IFJWuqREPu54LLznKF28YyDDRU8kjoTC9dZhMbdfR0yD8mVHWkmOvAo/iF/YkEW sZbw== X-Gm-Message-State: AOAM532O0pZlBuIpJuWb6F9HEmURn8JlxQ9toLLIN0/fUjyDimJdyajJ vCEs75bt4VN2FVj16NtpLjfbqU8IHGj2ciAXt3l8+w== X-Received: by 2002:a81:784b:0:b0:2e5:9f35:a90f with SMTP id t72-20020a81784b000000b002e59f35a90fmr35657587ywc.278.1648041954053; Wed, 23 Mar 2022 06:25:54 -0700 (PDT) MIME-Version: 1.0 References: <0f6d4f89-c08d-b985-075e-a763fec87fc4@163.com> In-Reply-To: <0f6d4f89-c08d-b985-075e-a763fec87fc4@163.com> From: Eric Dumazet Date: Wed, 23 Mar 2022 06:25:43 -0700 Message-ID: Subject: Re: [PATCH net-next] tcp: consume packet after do time wait process To: Jianguo Wu Cc: Menglong Dong , David Ahern , Jakub Kicinski , 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=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 Wed, Mar 23, 2022 at 6:05 AM Jianguo Wu wrote: > > From: Jianguo Wu > > Using consume_skb() instead of kfree_skb_reason() after do normally > time wait process to be drop monitor friendly. > > Signed-off-by: Jianguo Wu > --- > 1) net-next is closed. 2) This seems pretty much random to me, we definitely reach this point with packets that are dropped. These are classified as drops. You know, TCP can handle reordered packets, spurious retransmits, and stuff like that, we do not want to hide this, otherwise we would have used consume_skb() for all packets. After all, TCP handles all incoming packets 'normally'. If you really care, I suggest you change (when net-next reopens in two weeks) the @reason to more precisely describe what is happening.