Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4906397imm; Tue, 9 Oct 2018 07:01:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV62MECVL+G8ntFdRqFHTzm8SQEQsv372KiS5FCwskuNrEd3QmFtdFmQ9Qo/6rOnBqYc64kTy X-Received: by 2002:a63:cf0e:: with SMTP id j14-v6mr25556954pgg.195.1539093681341; Tue, 09 Oct 2018 07:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093681; cv=none; d=google.com; s=arc-20160816; b=O84jz9q91aje9fhHUHQIAythoZHFBEPciLWgu/CwOQDtUKHEtl1z20T3Y/KSXsCWvQ qrNFt/O+5h89QZgMW0qTnH6SC/061SsRtdayA+s7hKu3ziy/cTMNPNMlGIAZshtRFprP SBTtJ7Y+blbNZEBaZUDqS8V0jMQrRnjtL80uS7pT+UifW56svtDKqFvweD20pzvG7Ga1 dN8ZW1SSaPc5dyK7kWAtiYyQT7lnEv4iJMvUpXJnB0t+zhykeQYmYHeqtLkmnqENZ5l3 9W6203KPAV5P1hACNi3fmD5zW0avaSNyiRAQhLqYs+9RGw0j2VhnWeFLhtEKQKd4rl9+ kfSw== 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; bh=7E2skqIlbm5k7+85miqQVID6ruxTATIFqSGA20Yp2qI=; b=IlxhE5Xk20N9BEV7Y6z0g0fsDpD9/9nkmA9H2D728pn8crJYl95NbZfWyh8eom/zzI FnUxQ0Xln9ddyW74EUnbf9B4SUczfF/RnVgYErmHcNj9uRN8KQDBnwRkOcbtiQfVnX3g U1h1Xt8kN6pfq3Dg1Vt7ii2QiMYTc42jJB60bwrpMPk07Ljphq91q/J0nvom3e1dYyQG Foh1GWd/lxORTMlE+2T7oJgBHTNxOR/3xkAk58gUjTF+KTMk//CZHqv0GMAIrjSebnOs bJna6Q5eaDLVnhny00vijVdvmUE5iUMahFWWT5gZ9M1kmoy090DxatBWLzGzsj/mRp9r FhhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iGAvtfLa; 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 4-v6si22970486plh.99.2018.10.09.07.01.06; Tue, 09 Oct 2018 07:01: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=iGAvtfLa; 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 S1726757AbeJIVRm (ORCPT + 99 others); Tue, 9 Oct 2018 17:17:42 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:37887 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbeJIVRm (ORCPT ); Tue, 9 Oct 2018 17:17:42 -0400 Received: by mail-it1-f195.google.com with SMTP id e74-v6so2788025ita.2 for ; Tue, 09 Oct 2018 07:00:36 -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=7E2skqIlbm5k7+85miqQVID6ruxTATIFqSGA20Yp2qI=; b=iGAvtfLazMmwyk/sGHVhWRT0zPsNKqwxGsOLZtdo/kTm4R4gd3tFQL0JsmxVLRCL/i 9we3vWDvsyHHJ9LsgYHQ6aOnAGGD+HTGDhiuihTZJ7NX0Povzq57z/+wQMq3D2Sy5x40 vyKbzyzeNzImA64M72nLXFMgi6g4ki0aMVDiT+8Z290Cp5SD8DmH+Q69aa/YlXMr3khB jnN56RhSJT9V7LqPxO65BXynhGaS4Ro5FJyEu1eiX6qcR+xCMye9q9+wY8nMFFB/CEUX 47PUU9AupIjH2I4FUNpPOCaHLncDL7L2V+tjgWABKDW6SIbjVP0A0YgWriYZmxLXflPx IyHw== 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=7E2skqIlbm5k7+85miqQVID6ruxTATIFqSGA20Yp2qI=; b=HONVmzbF6mjbbegju5UE9SigvxwSlRvGvUUgN8DYpiHA8VzqnV8HeOdJaLPH4kAcBp FL/mlhp417nli3S264KN2L/Mic4o9lMWeU84dugOL5X584dpu1kqLLCR6byNpOTDNS3m L78FGcAxou0U58udE9HmqIDHUmceEa8xpQU/Ffj3QUjxrFRsumZtRPWWhkeNZVhXD4Xs 1n2OZtxsJUicW8nxxhCrTWbT4oJGbZ1kvwHjDfRcE6ZK7SPLbzSywEuqCMO4In4QBTaq JjIJZlRvm1PCo1PAwB37JQC8O8l31bYd5r0VH2ipNffJJBAVjbeJc3cfQ9TRfA/rtcmF Q7IQ== X-Gm-Message-State: ABuFfoglRbQz7sQO/KpXkY4I2fx6layk5wqfNoqpGqziE07MBKR38dTc ORgK7TuoPJ4MjO165uX0uvv4dwFoiZnFZxYwl0v4rA== X-Received: by 2002:a24:74d4:: with SMTP id o203-v6mr1814168itc.81.1539093635660; Tue, 09 Oct 2018 07:00:35 -0700 (PDT) MIME-Version: 1.0 References: <1539086718-4119-1-git-send-email-laoar.shao@gmail.com> In-Reply-To: <1539086718-4119-1-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Date: Tue, 9 Oct 2018 07:00:23 -0700 Message-ID: Subject: Re: [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2) To: Yafang Shao 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 Tue, Oct 9, 2018 at 5:05 AM Yafang Shao wrote: > > The sk_max_ack_backlog will be set in the caller inet_listen() and > dccp_listen_start(), so it is redundant to set it in > inet_csk_listen_start(). > Just remove this setting. > > Signed-off-by: Yafang Shao > --- > net/ipv4/inet_connection_sock.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c > index dfd5009..cdd5c95 100644 > --- a/net/ipv4/inet_connection_sock.c > +++ b/net/ipv4/inet_connection_sock.c > @@ -871,7 +871,6 @@ int inet_csk_listen_start(struct sock *sk, int backlog) > > reqsk_queue_alloc(&icsk->icsk_accept_queue); > > - sk->sk_max_ack_backlog = backlog; > sk->sk_ack_backlog = 0; > inet_csk_delack_init(sk); You got it wrong again. Can you read my feedbacks one more time ? This setting is not redundant, unless you move the ones in inet_listen() and inet_dccp_listen() earlier.