From nobody Mon Feb 9 10:47:49 2026 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a05:6638:2248:0:0:0:0 with SMTP id m8csp375648jas; Thu, 27 Jan 2022 16:38:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYvzPWIkzsf0F49BoGvWj8B4xJ/1+Z1CG30MU4r7C8UCbXA+1kvafw/Qb4L6lXJV6v9gkn X-Received: by 2002:a05:6a00:be4:: with SMTP id x36mr5165297pfu.77.1643330324970; Thu, 27 Jan 2022 16:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643330324; cv=none; d=google.com; s=arc-20160816; b=0TmPH164mebPzog5d5RqihWjDv3meOoxycjUcGjhun5H17tFJuOR7X0rz2BQJ3qlAK sGX6UYCuIRUuRg4m+Pks/VtQzwed3DAv1ZteeXu1W8MhhK+3Xy3gMNCJc4npChZr0g15 n0qpsGH1fBbfAgpmT8Lay7ADsqlGomlzo8KNUGy9fz2R84wYAggNEFSUsFQ8bE2GsyIk d8ZHdAyEyURcPm0y6bjZWKpo62CxFdq6jr2do112UcRgwm9gIgsWBpT0ljOe2PhGjzhi czJxlvtKs48l0/RqmNxnKyYMtl5hig2oflQL+atIMPPAgMTHR5ZQ4WwaCku58KYsL2do LRgw== 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:to:from:dkim-signature; bh=HM/8E8/ucVOfUrX1ee50owYubYwlvokzvRIHgvR1ASI=; b=WlwsqpPxrsdrEUY/b8HsGXD4iAMdX/9pQpuuW/3TtBP1IoLt46TohB8I3tqD/c+330 uUQfSMw2t9jHDmTpCVdNtRpM0nFhh/gOC4hg0coeh6Jb1ysV78TFgIchfddQsaBrPjDN UB/ydbRPwFqLpWtOR7R732g4yFsVIa402zq1ngx7F7WSNfhq83fDBOz0UePPoPGFA1Hw jG1N83rb/CQCZtW23QqtCWfsEjOuZRF3E6NP+G/90cspysTq3oXRW3iYNaFyVIzqmBdD T8RrNfnA8Q6HnpXOahg/UZkwWDbBVbqcCvWorJKeZJ3UPhoYWnf42uXEpVf/EwI9mvQl XFKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b+QIVWC+; spf=pass (google.com: domain of mptcp+bounces-3336-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.197.195 as permitted sender) smtp.mailfrom="mptcp+bounces-3336-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ewr.edge.kernel.org (ewr.edge.kernel.org. [147.75.197.195]) by mx.google.com with ESMTPS id m194si3827271pga.618.2022.01.27.16.38.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jan 2022 16:38:44 -0800 (PST) Received-SPF: pass (google.com: domain of mptcp+bounces-3336-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.197.195 as permitted sender) client-ip=147.75.197.195; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b+QIVWC+; spf=pass (google.com: domain of mptcp+bounces-3336-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.197.195 as permitted sender) smtp.mailfrom="mptcp+bounces-3336-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 ewr.edge.kernel.org (Postfix) with ESMTPS id 176D51C0CBD for ; Fri, 28 Jan 2022 00:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B152CA6; Fri, 28 Jan 2022 00:38:41 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 C1D862C9D for ; Fri, 28 Jan 2022 00:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643330320; x=1674866320; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=PwE0NguYM09Sq5YI4hK1jOZyJZjZSRflvISwfqFUO10=; b=b+QIVWC+yN2ASTxAMHgmZgevl4SabSHYyf9St9XUUeSi4W0lKCNFSx7H ZpnsT6GglDRQ01mv9jlReC5yYcFmf1xOnvBCqHzTasyg89DQy+cxProlm qmW1LYJ99WRI+STVXk7Q01h2elUaYZQdlA4QVojgVFBYb9T6fCvJr7ncQ C71iNFBLwPbQlLrYwdwi02a13ZhVVmAtnlYH33JvDSoqnCiSwq/4hK7BZ Xu2A1z6Do2sov4r7bnFItAl1JrW5YkazyG90EHLYbiNWVcfr2vNtAQa+P L4upIPp1pKZpmu1+LLQNH2oQCtARLtwbZXC0xXgTXtwg/hxJOOkdmpY9I A==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="245846910" X-IronPort-AV: E=Sophos;i="5.88,322,1635231600"; d="scan'208";a="245846910" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 16:38:24 -0800 X-IronPort-AV: E=Sophos;i="5.88,322,1635231600"; d="scan'208";a="564000996" Received: from otc-tsn-4.jf.intel.com ([10.23.153.135]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 16:38:19 -0800 From: Kishen Maloor To: kishen.maloor@intel.com, mptcp@lists.linux.dev Subject: [PATCH mptcp-next v3 2/8] mptcp: store remote id from MP_JOIN SYN/ACK in local ctx Date: Thu, 27 Jan 2022 19:38:06 -0500 Message-Id: <20220128003812.2732609-3-kishen.maloor@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220128003812.2732609-1-kishen.maloor@intel.com> References: <20220128003812.2732609-1-kishen.maloor@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" 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. Signed-off-by: Kishen Maloor --- net/mptcp/subflow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index a7b2d6fd1c1e..479a4f53bbdd 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -444,6 +444,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.31.1