Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4769327imm; Tue, 9 Oct 2018 05:07:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV60DGzkQdiWwWWnYeEaqu0jpisIEY5Mzys3rFjY29FmgL+G6PMLyPGD/+pW20kEbmZRBxMr1 X-Received: by 2002:a17:902:b403:: with SMTP id x3-v6mr28853808plr.237.1539086860024; Tue, 09 Oct 2018 05:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539086859; cv=none; d=google.com; s=arc-20160816; b=WlJI1TIUlYXdR4i2tRcM/z0SZlV3ES6VdH+698TollYRd0vasuibGiiUN7NDvisqoO jHWvGrLLtZLsuDGUkvT7klWrrCTZGM3BQReZy3iOLtOzSgqE9RnpNYRR345tCfjc9wu9 ePFnl4FO/4ItrfEFZtTE0b8Qdvu8ijHIB0pvdBvTTGiJQvRB0e5hEMcGaHVzw/0avhnc eCtjHHyAg8CXVA/kJV1htrXqyAYOYN5APV2eJEJ1uRnXYP14FhoEdgA4Xe7e4luEKw3u Pr66pDwV+Y6S2ocey0xQsr3TtxTN8Dz1gQ3LBIWJeVyTwZA/WaZviOhKi6DfVvFTbwzz lLwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=i4hFoDfOEmyea7w1gI9LOj+BjWZfDbB04SxDU9ssUeo=; b=wuqkQLdo82SY7jF5wMNxTSNVECvflqjoqH42B7I67YABqaIRNeiE5vcag4LfQS7Y/x wz+F+iX5A6yk/oIrw5SDDVdbQWtK8sj7/Mg2XFjCevubYhFCc7IuBds4WakhT1Hy27Sd 1rkRRIqCXeEcj4OwxFnGH4zqxNc7CWSDX/Xya4ojQvKicZ3JcQQe4R6lRL2owiwP0vUZ HdaUNmt8Q22tWbxQsOB+E0McEJf+60k1h6gb7tyJN2tfLNvytEdYNyKQOwQdFqzf76lX 7D/FpwWJ6pslshO7cO/I4DYD2LH18Kq/j3MmaqLo72Y+5ijDer6MIQluOkXKk0qzQfEc uAMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="KtUB/58d"; 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 p7-v6si20746482plo.159.2018.10.09.05.07.24; Tue, 09 Oct 2018 05:07:39 -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="KtUB/58d"; 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 S1726846AbeJITWX (ORCPT + 99 others); Tue, 9 Oct 2018 15:22:23 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45201 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbeJITWX (ORCPT ); Tue, 9 Oct 2018 15:22:23 -0400 Received: by mail-pg1-f195.google.com with SMTP id t70-v6so701356pgd.12; Tue, 09 Oct 2018 05:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=i4hFoDfOEmyea7w1gI9LOj+BjWZfDbB04SxDU9ssUeo=; b=KtUB/58dFr4Xu2tgRNyisrLvLyf/FvRVmo7KcaBRrvS7ISpts6J6A1baKNHTJuNjgR uUoCSrsoRAPyOfODRqRL3vasd0rraMJfmHuRiTCuvDwhmLnfTVfuBCtKoyXxwoXX0lQC cWat0N7adoJYp0cxnAVrc2irDtc0c0ONQ6qhCEpn6Yetzfs/ieMpmtgu+zxNe6xszu2E QD3zf72DFUuqtmLYmLN0iXhAgGW26ETEUEMcBtzAsuD1jJV0wv62dJ98ta6eHPF3AWs7 1T3nPvrtuJr9eM+fTESdcBaNC5X9paGWTfk7p0gdF+jG2Z/V0dSKI86wcpYDxqa7kNsN BXmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=i4hFoDfOEmyea7w1gI9LOj+BjWZfDbB04SxDU9ssUeo=; b=HLB2qTeMWUAdi6fKWK1GPvUEGNHnsyXL+g7Z7tJl/w9RLikSIWmyx/OfsJaEE1wCoQ hjLLJrkpAVvChj2YqPbp1jWLsfgyn1FyKXoWolBZy03r6+hRLa8FI8VR/xc8QSnh1C8u tvMp4JQfn7prBck0xmnVrE5pAKJrtTsbL4EnogDWv8LnfJ1+9SebTGeBLmhNs00J5uE/ f0HFqHYp17y9K8Juf1kDzslvi6eoLjsOe7vLGmiy1RSWer1bk8wI2cGN85kCfydWnsXH 8zrDg/YNDXvGaAw0yPF1KKbylcck0qrHFMiYoJOs2ILAV5LABFeXUzX4ZtaWOBWQc7hD Tejg== X-Gm-Message-State: ABuFfojfNlzYH0ZRZJTIflbTi6qEBlNBQigtwV+p/hnAJYybU8mHxUoz obgebPBaENaBG7UQ/QG6SB8= X-Received: by 2002:a63:cc:: with SMTP id 195-v6mr24911604pga.44.1539086744779; Tue, 09 Oct 2018 05:05:44 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id m11-v6sm23517239pgn.39.2018.10.09.05.05.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 05:05:44 -0700 (PDT) From: Yafang Shao To: edumazet@google.com, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yafang Shao Subject: [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2) Date: Tue, 9 Oct 2018 20:05:17 +0800 Message-Id: <1539086718-4119-1-git-send-email-laoar.shao@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.8.3.1