Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3422943imu; Wed, 7 Nov 2018 10:05:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fYYc8YDgK1MY213ZTglSEpS3oia8jbn7CeShg+zFaDp+LknfJ8/SrIK+IYVkzXfRS9PUaH X-Received: by 2002:a62:6981:: with SMTP id e123-v6mr1204733pfc.104.1541613924549; Wed, 07 Nov 2018 10:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541613924; cv=none; d=google.com; s=arc-20160816; b=YfzmnonWAB3Xq04ntV+TZehACt7Ym6TlC/qDEaX//PEol0FknXZvmQo2hs3ZWoMZTl FWU2nEg5IDfmQOaONCR1l0gZRh+8SY6Al+160NxsXBz9f3XAnA5F3UwgYFgxmUmgaEQb MFnQkgvVPYQ7qtXJL7NakbQ5hqXBLmkQkRztite/FA28p1aY3kstGDG9ax24L8+VTI2h oYD4Bsp6eVzgi0A58LrJBVgaUkqk3DrKyRc4i8fFCD/d2fzC4s2LT/jAist787f31DkF ZpvAHEor07WwAZgEp9/w7ZQUaS8OcBZfb+uY1J2TdIAUcO7kNuJsVA9TCFAPm9pPSe6d RtvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Z3bmz2HlEvYxNMctRBWVMf2OsR+VNaAgKpEUFqKAEWI=; b=Mzx2s6aM57BVY48UuwAQvCx/ydWJrcn2FUjbju2N8oKfB24CPlDGsHcFFfcF7cDaxg LKEf7nhNQyOW5Ufnb+VdAEDvi9phWtoFk8LJ6CwYNV1AX2xiKHktmvKrseaAKHPT4KsX PZVHnZQdn7Ud0zqtPIY4S+T5C61gA/c5F21LHZY9yD2ioNO3cUFjYKiqu+dlrU/nzhNA GmgNmg5rGST35oq0oUKBrqT//TZakpEZgFyZwN1tWYLIiVGgAUXuQiQfRYCOWWIegZXe AsNQYkf9/7x6dVByPaEAkAZq+qi+LiRKMuuYBgSXfF6BIzezb0qeRaeuKYeWJLVxBfvo dIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jQjjQwZz; 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 r4-v6si1314267pfb.43.2018.11.07.10.05.09; Wed, 07 Nov 2018 10:05:24 -0800 (PST) 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=jQjjQwZz; 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 S1727961AbeKHDf2 (ORCPT + 99 others); Wed, 7 Nov 2018 22:35:28 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44793 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727604AbeKHDf2 (ORCPT ); Wed, 7 Nov 2018 22:35:28 -0500 Received: by mail-pf1-f196.google.com with SMTP id j13-v6so8015577pff.11; Wed, 07 Nov 2018 10:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Z3bmz2HlEvYxNMctRBWVMf2OsR+VNaAgKpEUFqKAEWI=; b=jQjjQwZzx+7AOvihYumqB48dACecOnfHMvGYVWsGIDwdjVZ5KnQfPviHuqCH2AG3TG 8QBBjm5kOP5WYWq852icBH+JQEIxgTKGe6LBMQRc/JnQrT0fGz0yHwpI5EmU0CUle/Dp OCs3cyYM7REhLF4CajcuBSoLwy9oJcA770hE4FumbWIib6gJxWJqsViIC1mc8lpq6k5F 2NevHkSeoS92SXfzQbbz8rvOIG9eWSqnE3Bj5x3q0MUuz69c7aaUZluQBhWB2XstvYK+ pVqY63oAsWUycLMjL1WTEzndiyk1vnnZeV7JNbkeuCcplLKz6IcvZ2WekcJ2RoDk+UPM ULUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Z3bmz2HlEvYxNMctRBWVMf2OsR+VNaAgKpEUFqKAEWI=; b=a0CtR4VEhr+SzC+hc+3n80Sr4sSTNB4ppgOVkaAsmIXGkGajtTuuT+qGLLWwSLt9/+ qf4bFu6dflGIVpq9DvT+FlgH+hgEY4n26UeBtWQMq7kcx94LqjLRimHKFsOvrrM+tyft ME0dL/EcEv0Ma81d5IWs5Oxi/WHBMRXZfjyrqgaYfb8JHdSx7amkOggETnKBeu5eU8mf P306T9oHXu5+gg6ZGcHU/Gq0kpgspV2XF3RDkseKI8Qu7VpWsfrx0oEnhqdSWTJ5de3y KJ+E5tt159XFCXjojxz8jvqyi2rlbXFOMby+vPLc36yANKDl8oN3Ty0tZaNgftnv8j3P EEBw== X-Gm-Message-State: AGRZ1gKSTdbbnIQvALPcoQ2lwa/CPV13DmLulW1FKGqACB3MHIfK4fFU jeGqCn4vSrJiMQaeZEG089tdSsiI X-Received: by 2002:a63:e101:: with SMTP id z1mr1019627pgh.310.1541613837710; Wed, 07 Nov 2018 10:03:57 -0800 (PST) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id d3sm1040685pgl.64.2018.11.07.10.03.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 10:03:57 -0800 (PST) Subject: Re: [PATCH net-next] inet: minor optimization for backlog setting in listen(2) To: Yafang Shao , davem@davemloft.net, edumazet@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1541589617-1607-1-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Message-ID: <4d902d32-c914-7cdd-be2a-e6595ebc8c7f@gmail.com> Date: Wed, 7 Nov 2018 10:03:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1541589617-1607-1-git-send-email-laoar.shao@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2018 03:20 AM, Yafang Shao wrote: > Set the backlog earlier in inet_dccp_listen() and inet_listen(), > then we can avoid the redundant setting. > > Signed-off-by: Yafang Shao > --- > Reviewed-by: Eric Dumazet