From nobody Thu Sep 18 11:14:09 2025 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a02:cbb9:0:0:0:0:0 with SMTP id v25csp690112jap; Thu, 16 Dec 2021 14:24:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyrhukgOIbHb1kzoTc7g+qZYbTEu2ERWIeroKKABoLyjktNPgBkrNAfeAFR7D/uNEMIEEw X-Received: by 2002:a05:622a:164b:: with SMTP id y11mr87031qtj.87.1639693455062; Thu, 16 Dec 2021 14:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639693455; cv=none; d=google.com; s=arc-20160816; b=D3i12qEswReJEn0WghPuABBLmqTzMWoz97bYZ+36dNZlrzfqrnPwaZ4rowP8xJTxt9 DEKIawJ+ZBQchTSiVLuxOKK5i/92Bov7xCP3iZWFV0mlAMlBM3kHmIt+Xt0vp83tDTfk jflPVFFyY5Bmg+qxrhXt6mA4HimWKhH01kxXynRj/bQIQEYJNC5S6MlBc8Pa14ZbpOIg gB7748gLlnhYERBeH8efpVlgayJg32iTiLCaVE64qgmqKqDrurCXNu5R7zTRS4fNKFeP 9QuXANR6EtzuUcLFoUtLES7kfcOErjin6QskxqCp6rQCIAMemjQMryOwT5QKZOjhEwJ0 N4bA== 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=WEqmMOBzuYFoFCjVWQODiAN/+LotZ1sX3ZGr++xmRgc=; b=KwfbFnAFYIrj8xLhhkqpEtmrRy9el97L2wOoi6Gk84UlvHWt5t6OVuxlN7CcE0lFxg 2hNXq9bx15nU5H7UIxruPK8mW44B4Wm8CYn1Nrm/3N9kO3Qgq/Q/GRSOl66/bFfDrqua sZ7qVP2a4fNBkalVh6Rcwrpxhx3MtsBTmOSoOB5G5Z10mX5LF879506FENh3fS66eWRo ihPtQkg789JvSihmmIiLzlEnH4OocJx0CcRunfB2MeHyGGx95Fk4Zl1VAWbhM65FKs0W PV660hh4bAMFDCuy6Zix3A2ukU+xfBhXpeVmmw5V3JUUJ6E4halOP0TXU1lNGcnoVlft e8Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JUXsLOSA; spf=pass (google.com: domain of mptcp+bounces-2794-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2794-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. [2604:1380:1:3600::1]) by mx.google.com with ESMTPS id eo5si2753032qvb.39.2021.12.16.14.24.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Dec 2021 14:24:15 -0800 (PST) Received-SPF: pass (google.com: domain of mptcp+bounces-2794-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) client-ip=2604:1380:1:3600::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JUXsLOSA; spf=pass (google.com: domain of mptcp+bounces-2794-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1:3600::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2794-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 5E52D1C0A95 for ; Thu, 16 Dec 2021 22:24:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2318E2CBB; Thu, 16 Dec 2021 22:24:13 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 633FB2CA7 for ; Thu, 16 Dec 2021 22:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639693451; x=1671229451; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=g3HjRxAW2nKK2T0as/ELLt/oJ+EohLEJGBuBJ9Xk7D0=; b=JUXsLOSA0e7hySPXWhwjZnk11NGTz4IF/mUKTD9rbmk4D4UzY52kHcgF fdZJs8HlhMj0FcHoAyS7dclzRXdRZO47c1hSq0xqrvz5nLMit3N2H/e3k sJGxEYLWoRNK5An8cD1TJTd7/Xbkqqrl+3lJG1tM8VpPODssoiKUVa0x9 K39wR+Lo5pDG/tOUazg48VdfkelQqxCuJlz/y/E4CcCmfPHFpA2ZDvloL NsTVXyTrFKR4rke0C+fU8+vnJUvvj0lxbG2oYMwBKrZ9VILVz5NluzcZf +LsInoZY7TRaVJuqWFJlt+Atr+hI5nuEu/bU3uvo8fKaJniGguWxgGyRY g==; X-IronPort-AV: E=McAfee;i="6200,9189,10200"; a="300393157" X-IronPort-AV: E=Sophos;i="5.88,212,1635231600"; d="scan'208";a="300393157" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2021 14:24:10 -0800 X-IronPort-AV: E=Sophos;i="5.88,212,1635231600"; d="scan'208";a="519461226" Received: from otc-tsn-4.jf.intel.com ([10.23.153.135]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2021 14:24:10 -0800 From: Kishen Maloor To: kishen.maloor@intel.com, mptcp@lists.linux.dev Subject: [PATCH mptcp-next 02/21] mptcp: store remote id from MP_JOIN SYN/ACK in local ctx Date: Thu, 16 Dec 2021 17:22:55 -0500 Message-Id: <20211216222314.1244708-3-kishen.maloor@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211216222314.1244708-1-kishen.maloor@intel.com> References: <20211216222314.1244708-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 b009d0f7fb77..b75b7b186d34 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