From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B336EC433DF for ; Tue, 21 Jul 2020 06:15:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E384206E9 for ; Tue, 21 Jul 2020 06:15:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.co.jp header.i=@amazon.co.jp header.b="RT5vNawV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbgGUGPx (ORCPT ); Tue, 21 Jul 2020 02:15:53 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:64095 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbgGUGPx (ORCPT ); Tue, 21 Jul 2020 02:15:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.jp; i=@amazon.co.jp; q=dns/txt; s=amazon201209; t=1595312152; x=1626848152; h=from:to:cc:subject:date:message-id:mime-version; bh=ziIztNK7+ZkvWB3iPdBmBpcHTX7JFLpHEveWCfGCPHY=; b=RT5vNawVkSivcEaY6XuaMwCor0/zktiVuiQ2cJ+69SCjpdOSz1jyUceV Doi2YMXoR5UYmBvxv/JTOo1bbU5SazPDLmnB4KN2PzTlZwsU7torlt8CP fzN2s33g+q6to5xKrttJMHbZTkO9CUnQUvevXkD+lZ0HfoQBrRfqeWtYC 0=; IronPort-SDR: J976QiJbX6T4P5HqJn5uJHxBmDQIdt8dhAoo9plr7qYmMuNTpUYdXtqX++A0NNnL6N15SMURIe 3ZBj6fIRIyOQ== X-IronPort-AV: E=Sophos;i="5.75,377,1589241600"; d="scan'208";a="43063925" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-81e76b79.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 21 Jul 2020 06:15:51 +0000 Received: from EX13MTAUWA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-81e76b79.us-west-2.amazon.com (Postfix) with ESMTPS id C8685A22D2; Tue, 21 Jul 2020 06:15:47 +0000 (UTC) Received: from EX13D04ANC001.ant.amazon.com (10.43.157.89) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Jul 2020 06:15:47 +0000 Received: from 38f9d3582de7.ant.amazon.com.com (10.43.161.34) by EX13D04ANC001.ant.amazon.com (10.43.157.89) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Jul 2020 06:15:42 +0000 From: Kuniyuki Iwashima To: "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , "Jakub Kicinski" CC: Willem de Bruijn , Eric Dumazet , Craig Gallek , Paolo Abeni , , Kuniyuki Iwashima , "Kuniyuki Iwashima" , Benjamin Herrenschmidt , Subject: [PATCH net 0/2] udp: Fix reuseport selection with connected sockets. Date: Tue, 21 Jul 2020 15:15:29 +0900 Message-ID: <20200721061531.94236-1-kuniyu@amazon.co.jp> X-Mailer: git-send-email 2.17.2 (Apple Git-113) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.34] X-ClientProxiedBy: EX13D46UWB001.ant.amazon.com (10.43.161.16) To EX13D04ANC001.ant.amazon.com (10.43.157.89) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: kuniyu This patch set addresses two issues which happen when both connected and unconnected sockets are in the same UDP reuseport group. Kuniyuki Iwashima (2): udp: Copy has_conns in reuseport_grow(). udp: Improve load balancing for SO_REUSEPORT. net/core/sock_reuseport.c | 1 + net/ipv4/udp.c | 15 +++++++++------ net/ipv6/udp.c | 15 +++++++++------ 3 files changed, 19 insertions(+), 12 deletions(-) -- 2.17.2 (Apple Git-113)