Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp28310lqo; Thu, 9 May 2024 11:32:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3NGWNdTUnneg+ReEarN2EWLaI2MHJ4KxuSM5LjL12F4ucZwqaQbPFQQSi47SA+IuT4GKbHQD7FQ3E6anT7ZehNJyxP85W8fvSgSbteQ== X-Google-Smtp-Source: AGHT+IF6kvC7mjyDjSfShESpMj44CifWNCt7TlamagFg322dltPQlLWeSZpFFXO5G+wRTsEWID8N X-Received: by 2002:a17:906:4150:b0:a59:8fae:f5c8 with SMTP id a640c23a62f3a-a5a2d54c160mr29357366b.7.1715279532999; Thu, 09 May 2024 11:32:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715279532; cv=pass; d=google.com; s=arc-20160816; b=rmIAq/X9IYqQI4wnjzwhGQD50QOYMHVEDUZUTzdlt2M0mEhW9h+66ZGxHZ+0805DPv BSqx4X8UpypY8+CikXFAfLGwMbvOtOm0/7eWlGh+YwErse6qHWtccFuN4Y+Ln4rDrGyq ZOvSpiuSSPD3NRkGvzuu3MMK4EONnGlWBLlo56+rzMjV8u/HTywLvX8VcICw42e5Y4rN zzrk3suTCopbBgZ9mzfTvzAl2anE+F0gYOJxkaWnTZI/jME6Hsy2/zXlywj8d4+ylhwD BI7DqdzF4sSVWsF8ybmnABKON8j1PHr5npSBde64Uc1tk9A8+IezfUhDgmVfz2xLZMTq 4Xvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=TfjWSzoSq7OFYn7Sr5GKKAVe8zcDlcK+Ck1FhNacZgo=; fh=ZV/yQ50WAUxt5ynEz6I1/HnPpq/V8aLYr4Rol4BdLtU=; b=hNdif2pXotuBJcwqSsaRL91E3wY4JjL37cUo77CZrB6TUdHqH33mXvN15rPo3/HN48 7p6DbN7sozzgLTExrb3sAsNuWDMR+Yw7WW5IoKaAHcPPonAxlBGjEKMuDVVbo/660pi3 OsQF7ReJ5+ZNTFkMGhPugH6IQLoWUSkDpJ9TG5c8eYqUKpEc9QSWRyn5h44q9havqU1D lZI40KPB32EGYxL+A8IbGzyiWFN8uU0aLD1nCf2o6JnmI+Rnan8rMeVcAEZ0744KkwYq 3/69XdPc/z8pI6jGj0a/YD6rcczHa5OZnk1q2OZp83iUMeHboD3tvcPb+s1DJyOmQBKa ylQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=spFPN9Zz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174772-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba38aasi99059166b.564.2024.05.09.11.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174772-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=spFPN9Zz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174772-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C8371F21921 for ; Thu, 9 May 2024 18:32:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14D097F465; Thu, 9 May 2024 18:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="spFPN9Zz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C26447E112; Thu, 9 May 2024 18:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715279508; cv=none; b=dt7+fajGKWRisHMYxtHbhg3uDMIY5ZDjzybmAxV9uv2Fec8NfRfZaWeeJmvRAWB9Dv6e7jnWJiNwa/WWpTdC+Ph66pvCg1es+Ggr6F7TtuCihLczKquEf4eMTBl+930kAdSEh87wyL0RpujzSdXGg9zprhG6EClzPnSAR1FjE64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715279508; c=relaxed/simple; bh=EW2HneRYvnYjamI9I95OmhMCaCA7WANES7Q2uzbWvKs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p5IG35miH4aL2eGqk6vSNG/85873lGmyYf9nnpfiiqknshe3sWu3ljoDzRP4sE7A7WIjl3WkMI5b/92hMYU6r0NXV9y7FzIGhBCfQ896vWwB9ZykmuS4Mv8PccU6r9VfTJ6kkkYMW5Kq2/kvWJXKSlUzVYfIRhioiFZfgU3DoOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=spFPN9Zz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6278CC116B1; Thu, 9 May 2024 18:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715279508; bh=EW2HneRYvnYjamI9I95OmhMCaCA7WANES7Q2uzbWvKs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=spFPN9Zz/J4ZBr0EV6hWgtopFbXtBdd4UmS5ifVTpe132J8fQmCGTlBWqV99fm4ju 2jNW9DaIGEiZM81Is3h2sBICV/xMl60piGjnZhB8BeCqG9pNwNW2VG2mFtZB52rhbf ao7W/AdGRffBhbfnp0tcIuTJM4J/6xtDLTZqB4Mm3tlZ2bron4p0jf+2sg1ExdXXqf dCFBhUmBti4QI3nyHAt0BYQr880GSazfhdWMC1hf01w4QM/5b0vSafnAUrNQJ0t4CN r61CWgx+AF8Gg2Vk1m7dLE8gRvgvjySHC+XOlDQJJxHHbgBeh5JVqU0Pvm8QlJbkIW LfoKHgs2+AV+g== Message-ID: Date: Thu, 9 May 2024 20:31:40 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: [PATCH bpf-next v2 2/2] selftests/bpf: Add mptcp subflow subtest Content-Language: en-GB To: mptcp@lists.linux.dev, Mat Martineau , Geliang Tang , Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Geliang Tang References: <20240509-upstream-bpf-next-20240506-mptcp-subflow-test-v2-0-4048c2948665@kernel.org> <20240509-upstream-bpf-next-20240506-mptcp-subflow-test-v2-2-4048c2948665@kernel.org> From: Matthieu Baerts Autocrypt: addr=matttbe@kernel.org; keydata= xsFNBFXj+ekBEADxVr99p2guPcqHFeI/JcFxls6KibzyZD5TQTyfuYlzEp7C7A9swoK5iCvf YBNdx5Xl74NLSgx6y/1NiMQGuKeu+2BmtnkiGxBNanfXcnl4L4Lzz+iXBvvbtCbynnnqDDqU c7SPFMpMesgpcu1xFt0F6bcxE+0ojRtSCZ5HDElKlHJNYtD1uwY4UYVGWUGCF/+cY1YLmtfb WdNb/SFo+Mp0HItfBC12qtDIXYvbfNUGVnA5jXeWMEyYhSNktLnpDL2gBUCsdbkov5VjiOX7 CRTkX0UgNWRjyFZwThaZADEvAOo12M5uSBk7h07yJ97gqvBtcx45IsJwfUJE4hy8qZqsA62A nTRflBvp647IXAiCcwWsEgE5AXKwA3aL6dcpVR17JXJ6nwHHnslVi8WesiqzUI9sbO/hXeXw TDSB+YhErbNOxvHqCzZEnGAAFf6ges26fRVyuU119AzO40sjdLV0l6LE7GshddyazWZf0iac nEhX9NKxGnuhMu5SXmo2poIQttJuYAvTVUNwQVEx/0yY5xmiuyqvXa+XT7NKJkOZSiAPlNt6 VffjgOP62S7M9wDShUghN3F7CPOrrRsOHWO/l6I/qJdUMW+MHSFYPfYiFXoLUZyPvNVCYSgs 3oQaFhHapq1f345XBtfG3fOYp1K2wTXd4ThFraTLl8PHxCn4ywARAQABzSRNYXR0aGlldSBC YWVydHMgPG1hdHR0YmVAa2VybmVsLm9yZz7CwZEEEwEIADsCGwMFCwkIBwIGFQoJCAsCBBYC AwECHgECF4AWIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZUDpDAIZAQAKCRD2t4JPQmmgcz33 EACjROM3nj9FGclR5AlyPUbA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yKyXEfG+0rrVseZSEssKmY01IsgwwbmN9ZcqUKYNhjv67WMX7tNwiVbSrGLZoqf Xlgw4aAdnIMQyTW8nE6hH/Iwqay4S2str4HZtWwyWLitk7N+e+vxuK5qto4AxtB7VdimvKUs x6kQO5F3YWcC3vCXCgPwyV8133+fIR2L81R1L1q3swaEuh95vWj6iskxeNWSTyFAVKYYVskG V+OTtB71P1XCnb6AJCW9cKpC25+zxQqD2Zy0dK3u2RuKErajKBa/YWzuSaKAOkneFxG3LJIv Hl7iqPF+JDCjB5sAEQEAAcLBXwQYAQIACQUCVeP56QIbDAAKCRD2t4JPQmmgc5VnD/9YgbCr HR1FbMbm7td54UrYvZV/i7m3dIQNXK2e+Cbv5PXf19ce3XluaE+wA8D+vnIW5mbAAiojt3Mb 6p0WJS3QzbObzHNgAp3zy/L4lXwc6WW5vnpWAzqXFHP8D9PTpqvBALbXqL06smP47JqbyQxj Xf7D2rrPeIqbYmVY9da1KzMOVf3gReazYa89zZSdVkMojfWsbq05zwYU+SCWS3NiyF6QghbW voxbFwX1i/0xRwJiX9NNbRj1huVKQuS4W7rbWA87TrVQPXUAdkyd7FRYICNW+0gddysIwPoa KrLfx3Ba6Rpx0JznbrVOtXlihjl4KV8mtOPjYDY9u+8x412xXnlGl6AC4HLu2F3ECkamY4G6 UxejX+E6vW6Xe4n7H+rEX5UFgPRdYkS1TA/X3nMen9bouxNsvIJv7C6adZmMHqu/2azX7S7I vrxxySzOw9GxjoVTuzWMKWpDGP8n71IFeOot8JuPZtJ8omz+DZel+WCNZMVdVNLPOd5frqOv mpz0VhFAlNTjU1Vy0CnuxX3AM51J8dpdNyG0S8rADh6C8AKCDOfUstpq28/6oTaQv7QZdge0 JY6dglzGKnCi/zsmp2+1w559frz4+IC7j/igvJGX4KDDKUs0mlld8J2u2sBXv7CGxdzQoHaz lzVbFe7fduHbABmYz9cefQpO7wDE/Q== Organization: NGI0 Core In-Reply-To: <20240509-upstream-bpf-next-20240506-mptcp-subflow-test-v2-2-4048c2948665@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, On 09/05/2024 17:49, Matthieu Baerts (NGI0) wrote: > From: Geliang Tang > > This patch adds a subtest named test_subflow to load and verify the newly > added mptcp subflow example in test_mptcp. Add a helper endpoint_init() > to add a new subflow endpoint. Add another helper ss_search() to verify the > fwmark and congestion values set by mptcp_subflow prog using setsockopts. > > Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/76 > Signed-off-by: Geliang Tang > Reviewed-by: Mat Martineau > Signed-off-by: Matthieu Baerts (NGI0) > --- > tools/testing/selftests/bpf/prog_tests/mptcp.c | 109 +++++++++++++++++++++++++ > 1 file changed, 109 insertions(+) > > diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c > index 274d2e033e39..6039b0ff3801 100644 > --- a/tools/testing/selftests/bpf/prog_tests/mptcp.c > +++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c (...) > @@ -340,10 +344,115 @@ static void test_mptcpify(void) > close(cgroup_fd); > } > > +static int endpoint_init(char *flags) > +{ > + SYS(fail, "ip -net %s link add veth1 type veth peer name veth2", NS_TEST); > + SYS(fail, "ip -net %s addr add %s/24 dev veth1", NS_TEST, ADDR_1); > + SYS(fail, "ip -net %s link set dev veth1 up", NS_TEST); > + SYS(fail, "ip -net %s addr add %s/24 dev veth2", NS_TEST, ADDR_2); > + SYS(fail, "ip -net %s link set dev veth2 up", NS_TEST); > + SYS(fail, "ip -net %s mptcp endpoint add %s %s", NS_TEST, ADDR_2, flags); I just noticed that this command is failing on the BPF CI: https://github.com/kernel-patches/bpf/actions/runs/9020020315?pr=7009 Is it possible that an old version of IPRoute2 is installed? 'ip mptcp' is supported since v5.8.0 (from 2020). It looks like Ubuntu Focal 20.04 is being used, which has the v5.5.0. Do we then need to find another way to set the MPTCP endpoints? Cheers, Matt -- Sponsored by the NGI0 Core fund.