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 8979D2F32 for ; Fri, 18 Feb 2022 01:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645148130; x=1676684130; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=8Q7RGy9oBSku4VDCcapoqILuaOSy8HL0i3p8T6GYiq0=; b=R3VMIGjkhg0mcjclfxmcKEHZmh5L8SXbU7lUfk3a/TeWvNp0sCrEmdtc 2R1VCHhquxww239v31wOSTiyTNpwvL0MD/Oh1oeDZf1aHDkRYhKt+WY1y l/RT4qwRKw/rycwsy75qRhFpyTQOznLcjWm2+zQstWuqY8kbms+SdAr+5 0krMxvs45JEiqvHYQY0hCNvAzi2f5rHj3IUVvOPcGlfR18mBotY6Y2EJF chpFPTnZLy3SByAzrRxlEimOtsu0j34fzpsYWazppeYldMe2d/Q2Sf2vt KwKSD0eLtduy6oyrKAXptD8BObSli2c2EGpDgfQh82K/u2fOqlh64K5eG Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="231663226" X-IronPort-AV: E=Sophos;i="5.88,377,1635231600"; d="scan'208";a="231663226" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 17:35:29 -0800 X-IronPort-AV: E=Sophos;i="5.88,377,1635231600"; d="scan'208";a="541654794" Received: from pjayapal-mobl1.amr.corp.intel.com ([10.212.185.200]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 17:35:29 -0800 Date: Thu, 17 Feb 2022 17:35:29 -0800 (PST) From: Mat Martineau To: Paolo Abeni cc: mptcp@lists.linux.dev Subject: Re: [PATCH v5 mptcp-next 0/4] mptcp: more self-tests improvements In-Reply-To: Message-ID: <7a175aba-a3d9-f2d0-fee8-5f616c999013@linux.intel.com> References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII On Thu, 17 Feb 2022, Paolo Abeni wrote: > This iteration tries to address the feedback from Mat on v4. > > patch 1/4 is new and tries to address the problem behind issues/225 with > stricted RFC compliance > patch 2 and 3 clean-up endpoint management as per past discussion > patch 4 introduce new self-tests, as deserved the previous patch > Hi Paolo - These changes and tests are working well on my system and fits with what we discussed on the previous revisions - thanks! I was taking another look at the RFC and saw this paragraph: The MP_JOIN option includes an "Address ID". This is an identifier generated by the sender of the option, used to identify the source address of this packet, even if the IP header has been changed in transit by a middlebox. The numeric value of this field is generated by the sender and must map uniquely to a source IP address for the sending host. The Address ID allows address removal (Section 3.4.2) without needing to know what the source address at the receiver is, thus allowing address removal through NATs. The Address ID also allows correlation between new subflow setup attempts and address signaling (Section 3.4.1), to prevent setting up duplicate subflows on the same path, if an MP_JOIN and ADD_ADDR are sent at the same time. That made me wonder if we are supposed to treat this address ID as a type of advertisement which would require us to not reuse id 0? I think the answer is "no" because nothing in the REMOVE_ADDR section (3.4.2) seems to apply to joins, and it's also pretty permissive about not sending REMOVE_ADDR. We also won't be sending REMOVE_ADDR for id 0, so the new code seems safe in that regard. Hopefully you agree with the above and I'm just catching up to what you understood about the RFC already :) That's a long way to say, I think this patch set looks ok for the export branch: Reviewed-by: Mat Martineau > Paolo Abeni (4): > mptcp: more careful RM_ADDR generation > mptcp: introduce implicit endpoints > mptcp: strict local address ID selection. > selftests: mptcp: add implicit endpoint test case > > include/uapi/linux/mptcp.h | 1 + > net/mptcp/pm_netlink.c | 84 ++++++------ > net/mptcp/protocol.c | 3 + > net/mptcp/protocol.h | 3 +- > net/mptcp/subflow.c | 67 ++++++++-- > .../testing/selftests/net/mptcp/mptcp_join.sh | 121 +++++++++++++++++- > tools/testing/selftests/net/mptcp/pm_nl_ctl.c | 7 + > 7 files changed, 234 insertions(+), 52 deletions(-) > > -- > 2.34.1 > > > -- Mat Martineau Intel