Message ID | 20230324-upstream-net-next-20230324-misc-features-v2-1-fca1471efbaa@tessares.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1407713vqo; Mon, 27 Mar 2023 03:37:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBkF8r99RhCFPBHzI8PH943F27uZN3/jiyVHwmOpLgkFVI08FwnpxVZ4SdBtP5F0wSkBym X-Received: by 2002:a17:90a:6fe2:b0:237:161e:33bc with SMTP id e89-20020a17090a6fe200b00237161e33bcmr11910725pjk.16.1679913450086; Mon, 27 Mar 2023 03:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913450; cv=none; d=google.com; s=arc-20160816; b=nHWZ1kicpcXOlrNzQrN4pQ7eqpZFK1e/dFWZILC3Ar9LJxvjRNJqQqlP4LH8rUOfwO SUSQduP5Ab4C+yPCoVuLCZ1s3FXDMQlnVhFac5lMNXnOSVRLgd3xnIQuRft8PQ5+5ejT IJakkVZSgNSJJaTle0XoleQK4atLVVh1SSfUF5iB12nH0TegUgzlheBGk53CztpyVTLL Ded60Ll6f+jT9HpLXbY5QcbRzNH410Iyse9T+3S1cYQkdmd67djJTzpIOG4utZgvevkS td8cRlZHkjbS8zZhB00pnmCSTmhRmMVvsGGj11ElfdCbwpbSCK2/mgcEIOwgcjvMZfip CSWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=SWubI3gP1geg1ucxdfNQCa8sYMENfAIXdm+9lJqXCzI=; b=GAQbMKoGYwncqj1GUAzI7adoTBSgeNtvwCHOBMSZ0llT4RPq3Bjrw5U+UnO2+7r/Vx aa0n7gL8fjLsGcCyEOSI9LLXyp+r8b6o620uGfGnhWZcBMxdiOdngaVSA+JMf0UB3dpZ g+GOGRGkdPMCxhxbXbbgmMyRUEjZZdOpS2nz9q+8JmVugt5C+1aX3r1TbuCwi1uZsw6D lahlHxNe9IRj90rEdte4M0KmxJDqfLc1amvIsKwWg0qLja9NvAjEP3AQc+sIM2dEhNg7 WE5n/hplPn7PXNmZA8Zj8cZ6qEDCH2ewZzpMvcrP1sp4pvD0kaMPwfVfUAiKuzPFqDuH bj3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=PNV21uBR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a17090a4dcd00b0023f7d84cb10si10024740pjl.127.2023.03.27.03.37.18; Mon, 27 Mar 2023 03:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=PNV21uBR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233376AbjC0KYd (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 06:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233608AbjC0KYW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 06:24:22 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9B75FEB for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 03:24:16 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso6993543wms.1 for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 03:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1679912655; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SWubI3gP1geg1ucxdfNQCa8sYMENfAIXdm+9lJqXCzI=; b=PNV21uBRDJfTwQH7Vwf0vcXBpBoxXBTJH+0rwfYzLf2DVyhsztwqlQMKUzYCVTPzt0 GwrfIyClcqqJu6toj58ZI6DKgtk/jlIwjLkW8Et8J7XSmoIfG6EPsDuirfsuqpXHZRZZ nLUtvroz9DgsidvAji4iULOjN38T8wqZl15SZHCF6tllb3UmfNUsCg9k7AnAuGeH/Dsu ChWVPplrQZhhc0ChJCVn16n9lbRyFhWWJWExC1kN9ranLc+uLhdiEdsIi5Y8UtjBpNMv aSrzUE2IQ7BlqzXf2qntbF7EA4UGScCdAYk0moIv0IEku7J+6PaWKPpeAgLbdcycOox3 2/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679912655; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SWubI3gP1geg1ucxdfNQCa8sYMENfAIXdm+9lJqXCzI=; b=ldt7X/rWuZqWIRmtgQrzKMpuNDcaVsozyhH5ZBdTQHqV0vLFOPJ7Ao4j7Cf9UzHke0 uQXlB57KIOk5XRvvLZ8dMQwxo8O0o/6+4oVUwwv3Xe/3t1c5hxcysiD21VlSjrpZNXem SwsZZww26Sis2RNmeQ/C3O/pBui3XRcqV0Oi6jtfwhWrZ0ys0tUl7UXN/4oveO5XH8mn J8y4Iffjwj0sOXrzKU9IZbYCUv4c/trYukzWD7lPOhtEgHDVc6XkdonTv/3icI0G6FSq J8RQcYpQ2HzvPN6LgwHR3RcackfbAGU4vrjdX2GhnHqtrOjt/06Ka9lrYO8qBAkDKSjD lWJQ== X-Gm-Message-State: AO0yUKVlh2ZoBr2y1Pvuoe+AI6zwZ85tToCv6Ow4fPXXjUuFdjFGZYVw hG5vUvlzw8sVnXDCMhpmG65X2w== X-Received: by 2002:a1c:790b:0:b0:3ed:9ed7:d676 with SMTP id l11-20020a1c790b000000b003ed9ed7d676mr8956528wme.13.1679912655025; Mon, 27 Mar 2023 03:24:15 -0700 (PDT) Received: from vdi08.nix.tessares.net (static.219.156.76.144.clients.your-server.de. [144.76.156.219]) by smtp.gmail.com with ESMTPSA id p5-20020a05600c358500b003ef6f87118dsm2220615wmq.42.2023.03.27.03.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:24:14 -0700 (PDT) From: Matthieu Baerts <matthieu.baerts@tessares.net> Date: Mon, 27 Mar 2023 12:22:21 +0200 Subject: [PATCH net-next v2 1/4] mptcp: avoid unneeded address copy MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230324-upstream-net-next-20230324-misc-features-v2-1-fca1471efbaa@tessares.net> References: <20230324-upstream-net-next-20230324-misc-features-v2-0-fca1471efbaa@tessares.net> In-Reply-To: <20230324-upstream-net-next-20230324-misc-features-v2-0-fca1471efbaa@tessares.net> To: mptcp@lists.linux.dev, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Matthieu Baerts <matthieu.baerts@tessares.net> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=740; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=So4mzRtrXIJRD2ZN6IwFIBWGw9rUyByeoDq6UPFlPB8=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBkIW7Nftig6dQW8wQPUwWwTL4dEEUFiMDCFXMmM AYxC3OduUOJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZCFuzQAKCRD2t4JPQmmg cyYLEACsMh05r743SrrQahmb/dASG/nnePWzNUsHtLK0EDrydcG1E9pyIvThKLhuxmJBFkdfA8o uRgJaFQhLi/mgf9J1kurqnKVo1cT76lY3cQRHufXp3+k9+DY9q0MOn4O2P93f6z/JW4beuRsguf FTWSpUW1iOJdfL21R0zDeMO7Hi7g1bqH5TRyGtrM8/k7bS962G4mcpvxDwLXSxzDITvRagbU41N czNiY+0DpnyQrFOqTnMDoKXmBKar3V9IfCgggGf0BYNMTLSs2qv+lg+EP7FS7w9VoadoZZRlt8l f664x47KJL3kLfoi3QF+V/LaezEht3+crr6CqpBmDiPrrWgFvI2IKf9WPW75kgJvDnoxZ90/a3D 0pkBBkQlcKraE6LG0tmkA+NajAVmNcaUaPM+nPyRdiR3o3WiJeKZrGwnjC1xU83CEYOKPyH+5S+ n7Mcnq4QA398Eoo0gBjfn8tn1rErk2kG//CN/U3My/TDHZdk9zUv9lCbtHWSc/nJPpvonQAPhjR xd84HucX3XqHgGcUDCiut0aX1wyzS7TElWQg/Igxh/IsXQtGzEjJjQ8mejCycN3sKJ7yLCE5gc5 24YWYVX0fqkNI0Qiu1gbMC/H98YQw3JDPiH9zz15+oK93+ygI07nhcoyOCCuOJtqzIjdSlXRMR/ SUpG0vr0HCja/ZA== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761516925860917546?= X-GMAIL-MSGID: =?utf-8?q?1761516925860917546?= |
Series | mptcp: a couple of cleanups and improvements | |
Commit Message
Matthieu Baerts
March 27, 2023, 10:22 a.m. UTC
From: Paolo Abeni <pabeni@redhat.com> In the syn_recv fallback path, the msk is unused. We can skip setting the socket address. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> --- net/mptcp/subflow.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index dadaf85db720..a11f4c525e01 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -821,8 +821,6 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk, goto dispose_child; } - if (new_msk) - mptcp_copy_inaddrs(new_msk, child); mptcp_subflow_drop_ctx(child); goto out; }