Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1699528imm; Sat, 28 Jul 2018 00:45:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeiq6XHUUAwj647hVFjJDrRkhEdqzEgVbfmzvwKD26eDGP23KJzwXaqOXPmsodiEEPdXHQI X-Received: by 2002:a62:6003:: with SMTP id u3-v6mr9875257pfb.114.1532763909220; Sat, 28 Jul 2018 00:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532763909; cv=none; d=google.com; s=arc-20160816; b=O+HBCoq8Vpsd3cMTMf/bqwPeuEMR4fsayN5+CciRTNjZmdwLtbZSTGx9vFjg4SuKxN PocexOLEMrxNJNSEsinejsD1CQ52W9phC/pALiRE2EH+XJMQpjvYR1wq40zggvRo4FOc uOEsnQaTFEJ9uhxXg7vKPIhJvE4q/47iNiuCc+G+SA/yrECCMuwtoiKyIbkbJKpj8llc EWffGxJQNIApuXttGdEO+QjVEm26ZXCXPCq5VTccqjLDU43hpG5GsR1FHvO3v7EOYLLs 2HV1hue0MYx67GqIG8fSv26kMfwpwQ4+aTxCPTbfARH+dNMUxgPAVPVZh7b3S3V3cWZj Ac0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oUzh+UPnEEG3jYHC+Jrm2o27FVmC0oqOoqYaBgJA4/M=; b=UR+Jb8taJd3fGmNgb5oREW0iXd3Pn5ehzXnDOYRe3JySzmd/x/gjdTFwI+tmqPlF9m lbS7Ka+xfd+jpndupKcG1t/kSLigLmyMbg6rK6VAKp+Kv2KuhTaOXdBoR7XUYEypRSv6 qpbuo3goms3FxjKuRt/IdqAhhiDyrxB2847QBz0ykP3HeuKjWVMigMQxmyB4zvrW5GMp +bhvej8BPvcFPFfy6YNdgi4bV1rGKr9/gOIVUFUKfnZMloCXV+CHz1gnoyZ8FgnTHw1A Qj9cZo+j8h0nkXgF7csYNBpUQVTdIfYh8HDtE/blIr7J14pKHeGui0dxeZpH/ZFsbf0l Pg1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WYTyyUuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si5534395pla.496.2018.07.28.00.44.38; Sat, 28 Jul 2018 00:45:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WYTyyUuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726300AbeG1JIs (ORCPT + 99 others); Sat, 28 Jul 2018 05:08:48 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:37517 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeG1JIs (ORCPT ); Sat, 28 Jul 2018 05:08:48 -0400 Received: by mail-io0-f195.google.com with SMTP id z19-v6so5964571ioh.4; Sat, 28 Jul 2018 00:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oUzh+UPnEEG3jYHC+Jrm2o27FVmC0oqOoqYaBgJA4/M=; b=WYTyyUuHerxe2tL9YCg/v4nA1PaOsARSmJY69vgy+rBKccMupdrdYXVYI7aqPVYZe6 hVfp4pbTB28SVicdXE+GCEVavGyDDhplK5UaV1EHFU/0k6Jsd0uVNYggZVt2tEy0ygu/ SJ9obhgCrbCy5I1ZJtyppAmldCKDdrQU91dcqE33X6RjEOHiv6pXrF5MDcMd3mdGxyrB cu18M4zjxelZXsqO7VhRr6VF44O/HHAbDV1uvcr/ky8pkXEOYnAVRkIjQy9i3UEU/yjt E1s+4z4letXgTZhvWQupCx7xOe1kvDz3nB+EFcjPcP7ZNpIBH2b9zJKvQx2B66RHrbuC iN9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oUzh+UPnEEG3jYHC+Jrm2o27FVmC0oqOoqYaBgJA4/M=; b=AteFM1HL2CB+/Dml40cT7sCcc6Vbz9Z8X/PMoqdGxO6FsCTCJDptjPKJp57ZU8VHPh nwDjR6aMlaGXfKio4A8TF1p4W9PD3/IPTdateA6aL/bQdxoTPkLxp4QAlQrvIw3NUiKi Pjdaqq8KPCPaSvhi2nxXjs9STUbqCL1+m0eDhXfTYtXanXMyzbgf5dXraWM6D3YmVTaV XvbPJO/MQUY8rRiDOLOmdhLiVNHeDT6OAVzprWh0gM82tUVPFEvuzfyYa3MD/2K9uWYw 9ewfwToCOax9PevSI1OoDf5Dks6YCSEASkg1KZsg6GOjfJctiqM8bbkhfSNGwRb68Gqo fJjA== X-Gm-Message-State: AOUpUlHxX+JfziCsy6kUs5/Z0pyf4+Cf8E+8XM0aYGQUMMWLJMqilOzg fZHcMPQibFMHLv+QF95ik1HrTye+1BECXD7iFaU= X-Received: by 2002:a6b:c8c8:: with SMTP id y191-v6mr7527394iof.295.1532763795542; Sat, 28 Jul 2018 00:43:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:7a47:0:0:0:0:0 with HTTP; Sat, 28 Jul 2018 00:42:35 -0700 (PDT) In-Reply-To: References: <1532746900-11710-1-git-send-email-laoar.shao@gmail.com> From: Yafang Shao Date: Sat, 28 Jul 2018 15:42:35 +0800 Message-ID: Subject: Re: [PATCH net-next 1/2] tcp: call tcp_drop() in tcp collapse To: Eric Dumazet Cc: David Miller , netdev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 28, 2018 at 11:38 AM, Eric Dumazet wrote: > On Fri, Jul 27, 2018 at 8:35 PM Yafang Shao wrote: > >> So what about LINUX_MIB_TCPOFOMERGE ? >> Regarding LINUX_MIB_TCPOFOMERGE, a skb is already covered by another >> skb, is that dropping the packet or simply lowering the memory >> overhead ? > > What do you think ? > > If you receive two times the same payload, don't you have to drop one > of the duplicate ? > > There is a a big difference between the two cases. If the drop caused some data lost (which may then cause retransmition or something), then this is a really DROP. While if the drop won't cause any data lost, meaning it is a non-harmful behavior, I think it should not be defined as DROP. This is my suggestion anyway. Thanks Yafang