Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp758074imm; Wed, 11 Jul 2018 10:25:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpchy1z3EdW1vYLr51x/1BmGa4KLgh/dSc3o3GPZOPxM1rqoq/SfERFjhkSu3fDh5sM0YuY/ X-Received: by 2002:a17:902:8306:: with SMTP id bd6-v6mr29810687plb.120.1531329921605; Wed, 11 Jul 2018 10:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531329921; cv=none; d=google.com; s=arc-20160816; b=1FfgUVemr9uhk+vV099tGz2jfRHqMcWIYS6N9Y8ZYNXWaG3i0MY0y2VH6DFqOgsh/k zJCUuupGAQEI9JWK17i/ze3Z0dwn0A6g53BGMFIgvDrmXMYxfBR1d7/k/UDoF2Ryoflx jh+uAMSVrz5zThJGDOt2Rw0uozFQ7TWGr369vgl3RLVrgOyjH8ZPnmCZ7jRqxBH+6GV3 2bhO+46F0HPXeTCMMjJgPv9BIFSpMt2Hx9/qPEfTfjS1tOgNJNb96CsKbNN8ZycKGsZg piGe33UuqrnuRVlWMi+0zPohK73ttcGv5bvXEbXXX2k6lj7fkSI/XuYewq40mB8ogk+y mP3A== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=fNcr76WxkzXm0MxrwIaDvvzRiUO9GTZEDhVF60OLBuk=; b=VuQMgxjQIeJ/rwC8/0/NpiFvXrO6TJKPkXu+TprcqB2H0wWU9TdTmbfwkQVUwae877 wwCeFfj4s3mWzjxRKNil2cGSMCrt2ii/h+HWsAv+AK7gyQL9R25qNfclYcD78AWh/EOg tx3uArMxLAuEE5kkBSrwUtd5A3r7clslJvcnoNO6AhvwNg8soHWScyQPb3u//Gu+jcvL zMTCTOAmsFVGotYkWSNRI3mnHxrvUzxuUILQ+ykDS/OMyJeYkkqH0ejwtytykWlWXmcY FznWViXjvipvQH2BCysDfBfR7dzCiu9KWMejutjCTu11Uajreu9kpH8kffwcb7WTyxCw Risw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GIONX+d9; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 196-v6si19103657pgg.588.2018.07.11.10.25.04; Wed, 11 Jul 2018 10:25:21 -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=@google.com header.s=20161025 header.b=GIONX+d9; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733223AbeGKPBz (ORCPT + 99 others); Wed, 11 Jul 2018 11:01:55 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:33923 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732901AbeGKPBz (ORCPT ); Wed, 11 Jul 2018 11:01:55 -0400 Received: by mail-io0-f195.google.com with SMTP id l7-v6so23874764ioj.1 for ; Wed, 11 Jul 2018 07:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fNcr76WxkzXm0MxrwIaDvvzRiUO9GTZEDhVF60OLBuk=; b=GIONX+d9096rfJtDOyj7kUwFM/DguOeKQPonazvyepB7hFXz2r/SyBhk8daD2/pnDr /Z5D/thWL9P/grolVAuXzxrsH/ECijVCFgmPzDCgTQFugjzMpvDVY2jdLQXTlZS8qOXA JqZa1nUANG5P2NYy65eQBuNmaEHW6mxJL76TvbFSRinnL2wSqn2Kcst2STxJ8tjNh2Uo QvH0QXMHMJuG+Cyvhd0NlzYXOkbBHwOug4W1g2V2vb97r/bp7gNQp3ewRPV3g7Vkm2ay kyOMM4mwW6gu1E4gTuscnbeXG5Vz55zn+qCLLbBiaeGW9mFeqizz+Xs8FtYq8ih4odQt JxnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fNcr76WxkzXm0MxrwIaDvvzRiUO9GTZEDhVF60OLBuk=; b=eR8MuRph8B7siqNIEI3vR9ERoDtDQxRLhaYLWa6VZ4YFLYdmewzJZprN5D2clngQ9g eCfa8ZbZfa2Trf/Zv5yIT2G5FHZtza7SYUT3dbuWpnZjufDcI0mR9em+Ox2wh8Wd0Wx6 XxBZH9nySFwXf2ENTAuI5xjsfAFgkIC4kQdwASkbKzAYstM+pUi4iR3/CSq2d4iPhffJ g0qJs3hRUL0Q8wcbTZviX2Xi8mQb+PSQZ8vseg3O1vTcJNcERqrEVKVS743tSEJL2Myp vbn8mAUR5AtS4P+ECGftWXK0Cu2Zez1yi5tb0aR/2wER+sQNgiYBFkE37x6Y3eTeZfiO UZ3A== X-Gm-Message-State: AOUpUlGIP/Ayo5ApNknaPSiRE8coQfCnxYzzhvgkLEdXHq06kDA1vJi4 vdPZLh2xj39r7glh8lmnm4g1dwMAAtRvM/VKlua2WA== X-Received: by 2002:a6b:f10f:: with SMTP id e15-v6mr22946612iog.271.1531321031722; Wed, 11 Jul 2018 07:57:11 -0700 (PDT) MIME-Version: 1.0 References: <1531315019-3553-1-git-send-email-laoar.shao@gmail.com> <1531315019-3553-2-git-send-email-laoar.shao@gmail.com> In-Reply-To: <1531315019-3553-2-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Date: Wed, 11 Jul 2018 07:56:59 -0700 Message-ID: Subject: Re: [PATCH net-next 2/2] tcp: refactor tcp_queue_rcv To: Yafang Shao Cc: David Miller , netdev , LKML , shaoyafang@didichuxing.com 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 Hi Yafang On Wed, Jul 11, 2018 at 6:17 AM Yafang Shao wrote: > > There're are some code similar to tcp_queue_rcv() in tcp_ofo_queue(), > so refactor tcp_queue_rcv() to make it be used in tcp_ofo_queue(). > > After this change, skb->sk is set when skb is moved from ofo queue into > receive queue instead of when queued into ofo queue. Why would you do that ??? I urge you to test this on hosts connected to the wild Internet :/