From nobody Thu Apr 25 06:17:26 2024 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a02:b119:0:0:0:0:0 with SMTP id r25csp1107706jah; Wed, 12 Jan 2022 14:16:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJ7ihaWuDlLFaepN9Ypd8W9OpebKVPlQwbW11+kRAUWxAcSdrPsLJe4mZB344X3v7E7JBw X-Received: by 2002:a63:474b:: with SMTP id w11mr1463280pgk.618.1642025771667; Wed, 12 Jan 2022 14:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642025771; cv=none; d=google.com; s=arc-20160816; b=wzE50y6Icfsdm4rDKVaIf+rYH0oisHLfFVPmlWdosuf3c3+cviX2WNxQEZte6FjCdE dxebCipUWvNXqDHEZfR50WEcRsZ7YZOPQ3jmR7J3BPnMMCzgW2pG1jqPdEbeUgeJm1RN 3Fq+b9+zh5H4fjgVxK1DbRi/DKdKeoUXjyw87s+Akn5BLk6GRs3KUNgqnORrtjoU4eVV 5Mmr8XQ9cFMATKo9uoBGfOedQ9PxJnNRyZB+teNV2HmiXUe8eNZUTzusSKaj9K8qYE3m Y9JyGWZU/jF4GcwxYtCOKXTkEmAy5XAFxH3GeN+fABoYr1JXm2YlWJalVHkPBickPLku wcMA== 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=0EAx59kH9UJCz+hn4jC2asNqHOcXnkK4SqnZh6og3l4/TX1Z27CTofBrcSib+04kPW +VSorpsufkh7tQtzaYtt1kshP1zP4TNpbN43IJAi6ZnWmEvYT0M0qFLmFHduhHu7WFDt gIYnTxV4d342JcH40Ht18xXAjD1UCLy04v9T8GUWTY9YVVVYec5DnVPAvFtYjE22I54L pWDlT3a+C4t7K1nXA/8oRJ3aQ+h2+PBdSLtqaImuvuyAcW4zAerCQfbMoSNl1+h5YrIx AVI0bLt9Eu8dNxMsM1nn3ljm2nxFbQn3QClGg9EF1ZOceyWIFOtkAp1m5FmkBxGJ7HhL /ilA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bLeWKLqE; spf=pass (google.com: domain of mptcp+bounces-3073-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) smtp.mailfrom="mptcp+bounces-3073-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sjc.edge.kernel.org (sjc.edge.kernel.org. [147.75.69.165]) by mx.google.com with ESMTPS id d4si1147255pgj.757.2022.01.12.14.16.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jan 2022 14:16:11 -0800 (PST) Received-SPF: pass (google.com: domain of mptcp+bounces-3073-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) client-ip=147.75.69.165; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bLeWKLqE; spf=pass (google.com: domain of mptcp+bounces-3073-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 147.75.69.165 as permitted sender) smtp.mailfrom="mptcp+bounces-3073-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 sjc.edge.kernel.org (Postfix) with ESMTPS id 1E73E3E0F05 for ; Wed, 12 Jan 2022 22:16:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3FF32C9C; Wed, 12 Jan 2022 22:16:09 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 08F82173 for ; Wed, 12 Jan 2022 22:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642025768; x=1673561768; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=g3HjRxAW2nKK2T0as/ELLt/oJ+EohLEJGBuBJ9Xk7D0=; b=bLeWKLqEz5kFxiVtk64HR5MUOpBDl34WAATFlJCGuTCroXbYbp75dH7I ShRoLv7AmvusYzP4wp7EpIcoO5pYOFXQzfhF9Y0Y54kL0bIn2RqaatoDK ScQIHDtRMGzCfHf/MrT468n2oRdvL+6eOkj8A8JCC66TAw0QQgepNut9U 1FnlJgROY7OIEs8bBLGnBx6FhK8dxbXSdiXPSwHfU4PLLFVaCEVp6dwWG N9S+SlxSqiVDpapNZea0iN5mv/35zVTTu0A29Gwmjf6yRuW/mndUpgE5a 32gkslQqBj4LToypg6BzCx295wIbXpIMBzG4B39GL8y2OCgGeK6uwsGcw Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10225"; a="307213929" X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="307213929" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 14:16:07 -0800 X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="490907332" Received: from otc-tsn-4.jf.intel.com ([10.23.153.135]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 14:16:07 -0800 From: Kishen Maloor To: kishen.maloor@intel.com, mptcp@lists.linux.dev Subject: [PATCH mptcp-next v2 02/21] mptcp: store remote id from MP_JOIN SYN/ACK in local ctx Date: Wed, 12 Jan 2022 17:15:04 -0500 Message-Id: <20220112221523.1829397-3-kishen.maloor@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220112221523.1829397-1-kishen.maloor@intel.com> References: <20220112221523.1829397-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