From nobody Mon Feb 9 16:51:13 2026 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a05:6a06:869:b0:4b8:7781:bd2f with SMTP id d41csp4153188pis; Mon, 2 May 2022 13:52:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQCHdcz8zDMZk75W25D/ZUTs8HJDPh0ZfYQAoGu8x9rCj0rk9En9Wq7DKd+L3rFio2r0nE X-Received: by 2002:a05:6808:1893:b0:325:c6d0:63ef with SMTP id bi19-20020a056808189300b00325c6d063efmr493687oib.58.1651524770480; Mon, 02 May 2022 13:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651524770; cv=none; d=google.com; s=arc-20160816; b=CmN7JGRexuTa7RMSKN8nyhg/yc2ApH9wK3CgI2QLWyUewe8oJja8WVCfOoDk1AcHD/ 68+yTCkpkBIVqGBPrSC3PSjwUWK+jjiBuP4qHwVF0rZ8vgRD4nnYv287WupVM5fxE3G0 gUQy+XQFovg6Qf1c/KBXbYzh+Z9fYG14lqAGEPTHwiWGDpWss8mu8MF90YRQKgigJ/v4 B2ya42184iBG54Izgr30qhMCu5ZFhLQK+R6s8ortmpsrhBXAq+PeRC6tYf5prQNwANwR VRS+v4phPNGlkDUF49nMeemTcF9ePkTXYCphSjaOqnyJkQaaWcLIsIFtCLc3kouIwKm1 mTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GuLHQqaH1F3oYpjpkL8h/kZOyAsuS8gT83CkON03Xwo=; b=XvfCO3LF2Zhfr9J8XhQpfA4WWL/8Im9bT8dI5qampm1A4vlnMsy53m6VA4fxPcwQ58 2dyL/KCMryoLjRxw/LECGeJ7n7+qUF1/L9dVkWrOYxCIw3NCqXTAMEf2JusMS13wGYhb gEtIk3Tby3cZQNf1uDJcwehyrhjVVJrQFPwIFpuqbSt0wpYP++UTIjDJO1WS7eti5Ssc aEKpRA44BPtt/lJZC2Ml/aZVGJ/qA9sNZ8A+QqMkf0U+AtHFI3lR0x5/9b1u6pqiyFKO fUI7jzrh1ltD1kNPOXVCOeqF2YjbGw5XzEtbHj9Jj5Ud3XsTGIOiPfcZgh+NGk1NGKrf Cz8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D1Utdmlr; spf=pass (google.com: domain of mptcp+bounces-5028-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:4040:4f00::1 as permitted sender) smtp.mailfrom="mptcp+bounces-5028-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from da.mirrors.kernel.org (da.mirrors.kernel.org. [2604:1380:4040:4f00::1]) by mx.google.com with ESMTPS id r32-20020a056870e9a000b000e27d5ef2b3si8076007oao.279.2022.05.02.13.52.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 May 2022 13:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of mptcp+bounces-5028-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:4040:4f00::1 as permitted sender) client-ip=2604:1380:4040:4f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D1Utdmlr; spf=pass (google.com: domain of mptcp+bounces-5028-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:4040:4f00::1 as permitted sender) smtp.mailfrom="mptcp+bounces-5028-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by da.mirrors.kernel.org (Postfix) with ESMTPS id 42A382E09C4 for ; Mon, 2 May 2022 20:52:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16CFE321D; Mon, 2 May 2022 20:52:48 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 134DD3214 for ; Mon, 2 May 2022 20:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651524767; x=1683060767; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g98A4rA20yFt0BaxgDASs6GlXnYlxTSYaWEzwtMEDEk=; b=D1UtdmlrBfakr4rUR8DXzxpg3t8PwsKdoyL74dHNkxdif1/PjbeOLU0k LyDz1LFaap6B7WwXBteSLEpuZfOpz9bhRf8IaqYHEx0q6URNQbPxkA6Gn TsinzfxnLJYon8ZOhAWCw8kIJyZQxDGOj5yvZdsMgr6ypOxBDVGj/LroN orHfUwNGWuBXdmwEMY+Y9xLdbOge6Z4MKxq40my1QWaYTkFLcpPrtu3oP 2ilOu4uEH2DW8b2DscdGlVmPF51XJQiIjfXHdENybv8sl11c0hH1fls55 aluDX6LqT+2Urf17qm9y5llb7i8sxeR9bVHTXCrjvv8REi45Tpbe51reH A==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="247875185" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="247875185" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 13:52:43 -0700 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="733619574" Received: from mjmartin-desk2.amr.corp.intel.com (HELO mjmartin-desk2.intel.com) ([10.212.141.55]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 13:52:43 -0700 From: Mat Martineau To: netdev@vger.kernel.org Cc: Kishen Maloor , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, matthieu.baerts@tessares.net, mptcp@lists.linux.dev, Mat Martineau Subject: [PATCH net-next 3/7] mptcp: store remote id from MP_JOIN SYN/ACK in local ctx Date: Mon, 2 May 2022 13:52:33 -0700 Message-Id: <20220502205237.129297-4-mathew.j.martineau@linux.intel.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220502205237.129297-1-mathew.j.martineau@linux.intel.com> References: <20220502205237.129297-1-mathew.j.martineau@linux.intel.com> Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Kishen Maloor This change reads the addr id assigned to the remote endpoint of a subflow from the MP_JOIN SYN/ACK message and stores it in the related subflow context. The remote id was not being captured prior to this change, and will now provide a consistent view of remote endpoints and their ids as seen through netlink events. Acked-by: Paolo Abeni Signed-off-by: Kishen Maloor Signed-off-by: Mat Martineau --- net/mptcp/subflow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 9567231a4bfa..a0e7af33fb26 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -443,6 +443,7 @@ static void subflow_finish_connect(struct sock *sk, con= st struct sk_buff *skb) subflow->backup =3D mp_opt.backup; subflow->thmac =3D mp_opt.thmac; subflow->remote_nonce =3D mp_opt.nonce; + subflow->remote_id =3D mp_opt.join_id; pr_debug("subflow=3D%p, thmac=3D%llu, remote_nonce=3D%u backup=3D%d", subflow, subflow->thmac, subflow->remote_nonce, subflow->backup); --=20 2.36.0