From nobody Sun Feb 8 10:03:29 2026 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:ab0:590e:0:0:0:0:0 with SMTP id n14csp2732849uad; Mon, 4 Jul 2022 02:15:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+Kq6yjWzBeHFPd7QVF/njGaZhXcIxMnIeJ5nD0DlWQrWlOQqQkiO841wbXuqzA3Z1Q9Tc X-Received: by 2002:a63:3c14:0:b0:40c:a228:c3c3 with SMTP id j20-20020a633c14000000b0040ca228c3c3mr24803684pga.256.1656926101153; Mon, 04 Jul 2022 02:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656926101; cv=none; d=google.com; s=arc-20160816; b=BY0VcKWB2yFIxIAhTXgeChiDrmt7hb7IV7gulvRv7h4ovHkmQGVsFEgaVdEm7Pu9K/ m+VPNRm0aNt9sxGpMNc40XiCHQ1NWRxsOd50FJ3Nt88aw2UmyXrFTyEFGPgxFPsxdpqd ukBjbrb8u5fA4qXGXXYs4qNFpVD7QVynOQRAOYOMgxOPc+KGFpcdaVZVXB0h3nn1ceq7 dEl8Ncrx2R16D5W4Z/+LCmTLGauMktjkfWCXrJnEB5BbKUtry8M+LGMz8CvX5q4n4JG4 5Su1vjajCJZEWPwfTf5HV6AxrhB/DxScQEmTnhamhQTrS/UTwdweth5Cmde14Fb7EJNi ImOA== 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=+DFKaN8QVS/mKAoW3OQy6u47fqbLFxD26tTV/pZD5xY=; b=hCj3Wrp0FQwbX49a9cup1W9tAZgQsQ1i9Bu2Q4U37yu3GTr9s83Uzrii6sBtQjybDe XJ30+rkaCgAPGxrX5G3G5hl5QTrNyH4MN5LsQg/fHK0HQPZ7ZnFQs5ApFD0JgGHzFr2T vlSXEVjnEaQieUAu30zmELIR4vOwTIlk6TUv1elNnrQM3ZmDU3+unPaaZoiAUUdD+KHi 47GjsgGi4nNNyK01kEdCVNOMaRg6DwnlAWbwL0vPZ2wxj7pPLCT4tb++S2dDCl0isP4N sQlVk26X6U2X8m55CF4kfCAugEs2WHeltYe+QVIoBmujGKIAIuUncvWEmd36Bcgbebfl VoJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CGfrcEoi; spf=pass (google.com: domain of mptcp+bounces-5947-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 139.178.88.99 as permitted sender) smtp.mailfrom="mptcp+bounces-5947-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u1-20020a654c01000000b0040986ef2410si23667270pgq.493.2022.07.04.02.15.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2022 02:15:01 -0700 (PDT) Received-SPF: pass (google.com: domain of mptcp+bounces-5947-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CGfrcEoi; spf=pass (google.com: domain of mptcp+bounces-5947-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 139.178.88.99 as permitted sender) smtp.mailfrom="mptcp+bounces-5947-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D5B4280C3F for ; Mon, 4 Jul 2022 09:15:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4974123B5; Mon, 4 Jul 2022 09:14:58 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 2301523CE for ; Mon, 4 Jul 2022 09:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656926095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+DFKaN8QVS/mKAoW3OQy6u47fqbLFxD26tTV/pZD5xY=; b=CGfrcEoiDoW/s/Ep+n/mAbwjuhmzRNvPnwCLTJJoIWRVx2cAny1J31DFlDJ7Rz1kvooI6/ xKVRAaRjAOxi4I/5CZwpfAls1uPYy6L97IdFME3jeyU5q5y0a6l6Bg2yruVBuju6YkRVWo paMrAgCPJn8nntPpXWgXFPAG0q9poAA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-218-orDEeygqPv6Tc-72U5dTXA-1; Mon, 04 Jul 2022 05:14:53 -0400 X-MC-Unique: orDEeygqPv6Tc-72U5dTXA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AFDFB1019DE1 for ; Mon, 4 Jul 2022 09:14:53 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.39.193.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4503B2166B26 for ; Mon, 4 Jul 2022 09:14:53 +0000 (UTC) From: Paolo Abeni To: mptcp@lists.linux.dev Subject: [PATCH v2 mptcp-next 5/5] selftests: mptcp: add MPC backup tests Date: Mon, 4 Jul 2022 11:14:36 +0200 Message-Id: <5d99d7ec0eb00d7fb2d5841586ff5825b36fca53.1656925387.git.pabeni@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pabeni@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; x-default="true" Add a couple of test-cases covering the newly introduced features - priority update for the MPC subflow. Signed-off-by: Paolo Abeni --- .../testing/selftests/net/mptcp/mptcp_join.sh | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testin= g/selftests/net/mptcp/mptcp_join.sh index 55efe2aafb84..ff83ef426df5 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -2428,6 +2428,36 @@ backup_tests() chk_add_nr 1 1 chk_prio_nr 1 1 fi + + if reset "mpc backup"; then + pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup + run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow + chk_join_nr 0 0 0 + chk_prio_nr 0 1 + fi + + if reset "mpc backup both sides"; then + pm_nl_add_endpoint $ns1 10.0.1.1 flags subflow,backup + pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup + run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow + chk_join_nr 0 0 0 + chk_prio_nr 1 1 + fi + + if reset "mpc switch to backup"; then + pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup + chk_join_nr 0 0 0 + chk_prio_nr 0 1 + fi + + if reset "mpc switch to backup both sides"; then + pm_nl_add_endpoint $ns1 10.0.1.1 flags subflow + pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup + chk_join_nr 0 0 0 + chk_prio_nr 1 1 + fi } =20 add_addr_ports_tests() --=20 2.35.3