Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp610828lqp; Fri, 5 Apr 2024 03:53:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAxPGJdlcknTzXm2OXmSLIbmYgBnKwi4TS0G3/bASZjSjRrjf2xdnfrgQA91+AZqabT6YW+B7ahQIaWwcDlJCaNcNUWG5ly34hgEZF3A== X-Google-Smtp-Source: AGHT+IGTOsfd25KH+pi3NicShGunM1qumHv1bSaqKZBoZXxXHN6pxqoDQyrzaFL04vMyu4NN7Xd+ X-Received: by 2002:a17:902:eec1:b0:1e2:86f:d268 with SMTP id h1-20020a170902eec100b001e2086fd268mr977403plb.19.1712314380384; Fri, 05 Apr 2024 03:53:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712314380; cv=pass; d=google.com; s=arc-20160816; b=HLLDWnAmYuSLDcC/2UyfEcRRG2WPd00LYmYbE2OlNwg2HIxJFp1Odbto6qzG2+tBnQ E1cj73LmiDVtiFSluXgktl6AkDgrVB4DUrCj7uKHnJEZYG/BHoK91ZNe+uV03UsTW3f8 sk+m3PxDdYXt7T6mURuSXf3YcamOJM+57ZYnrW7Cy7zrnm8WumYV9VVGDilg6SmTO9cX HIbPor4KTma5NJaP/AGJz446QaXBUPF/ym1NushwbuaOyHp57QOEZRvBxTW3AiqIV8y2 2F3eTxpms2LUA1nIgo7nBZwa4rlHx67gobbtR2ddNzfP1uiby3e8p9NwMr9BboEnRXu7 QZDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=ZHMp4du/BB9gKNY+njQm6C0dy4jt70wgjqJdL2zF+Q0=; fh=gM1fTaWoK9TL7webZ8yB3tcO8X47vwS7DNlJ3C0B/Lk=; b=DXinaJOTbCNhFYcza44FzYWyow/AeyL30AJL8hyGBcimpz7RIJYIxTiz31t1BOOJLq cVd5pULp07mWLKK6SvyKUW3ehj3tU//Anfipww4tsbk5nUG5rXIICthubwDqYj97lXug KwMVNthPhxVD25pYcBjLk1n8rkpjwz5/2zmUFRS/ZzyE54LACbuXRu9HpWQMPQxYXQtD CpM7plOgsPkW8K9eTxx59+hpRVRDiBL6vHKFnyLM4wZmvxoFIck3LBewSbn0PqlsVSmV qW6jsUXQZdgoPvEE2pGWYJVs5PJeoXsS0IRLha3GpMmsqdLr59pq/qJflHOSz8ji8q0D 5hiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCn6Daww; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a13-20020a170902eccd00b001e2b394986dsi1166276plh.442.2024.04.05.03.52.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 03:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCn6Daww; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132854-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 59B88B22796 for ; Fri, 5 Apr 2024 10:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FEDA16ABD5; Fri, 5 Apr 2024 10:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XCn6Daww" 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 A8AD64D5A0; Fri, 5 Apr 2024 10:52:25 +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=1712314345; cv=none; b=tko09H/k2dQrBX/jVIegZwyiHdxdStr/RpW01xWifEe0Uk/qZRaJ87rKZBLohRkD7oGhf8ibHGXGEPTSm/9UBeoysxf6I+vFaQVmOrJM8Jyf5UFSwr69/oNXGaKVNGiXvtOh7mO45MH48PgZDCXvEYvhAsztSkS3jDObxJSprHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712314345; c=relaxed/simple; bh=4cBVJpU3X7dIPVhhAjRHxZNJxNztq5qvGbJcVAE20BU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=gowANXjRmcQC7JTITPd4fYWMmxfb4ELK1GHQ5MzjEg3ksmsCjqBjeVyoWrchYIoWXqHbFxJpAh0L1t7Asm7Gwm9IWP4B0GCwe4SWW336YxjVZekPJ6Fq5xxW9DnKT2wfeFt8Kkhqy4i/kwCxsjnhj5dFI7BEbTJNIO7wRjVdzVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XCn6Daww; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AC9DC43390; Fri, 5 Apr 2024 10:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712314345; bh=4cBVJpU3X7dIPVhhAjRHxZNJxNztq5qvGbJcVAE20BU=; h=From:Subject:Date:To:Cc:From; b=XCn6Daww1ja7WDSrTWVmIBsTV4ZbHSes9xE5mT1NXsrZYmHO/SvAW598Y7uuptVHe lu45Kunek03tCxEnLcRu/I+cwKuHudsjO5pQX02j9MI7c28/Dk75rGd4/rilrNxYVI ndrFp52KOSvF7cUoieNX7AOauIID34Jfi5wkJv83XLv4Bm9h1bA0Zjcl6voodXZp2s 1lynq6erZ9YMt/+S6PZuC3eSczW1xQMwTDso7vj7DDWj0tp48g1BSTEHcR9P3uah/2 aGfl/qCX4tecd8DINOFaFW+gKPC2/jyLBzklcLXy4yMh97d6eOJqNfkWo3z5/liaCt vxynNWf4avARw== From: "Matthieu Baerts (NGI0)" Subject: [PATCH net-next 00/11] selftests: mptcp: cleanups and 'ip mptcp' support Date: Fri, 05 Apr 2024 12:52:04 +0200 Message-Id: <20240405-upstream-net-next-20240405-mptcp-selftests-refactoring-v1-0-eabc9b960966@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANTXD2YC/z2NQQrCMBBFr1Jm7UAsLVavIi5K8lMHbBoyUymU3 t0g6OIvHg/e30lRBEq3ZqeCt6gsqcL51JB/jmkCS6hMrWs717me16xWMM6cYHWb8V/N2XxmxSs a1JQL4uhtKZImjj3C9TK4EAdQjecqZfse3+mXosdxfAB7AfHukgAAAA== To: mptcp@lists.linux.dev, Mat Martineau , Geliang Tang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, "Matthieu Baerts (NGI0)" , Geliang Tang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2201; i=matttbe@kernel.org; h=from:subject:message-id; bh=4cBVJpU3X7dIPVhhAjRHxZNJxNztq5qvGbJcVAE20BU=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBmD9fkPXcohyMDtCEsZR+mIMb7dP47N2VzOCJmN 8CH0mzsHeKJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZg/X5AAKCRD2t4JPQmmg cynDEACsEXR+NP3YiPx+QfKZNq1fnfb4M3E0g1eEQ4S7y7q83c8YttaLBlXpr1rWKZWYkKIrmhA ZOfGKn8Rf/fFuERD9c/1LkC+mt/oTj+jvEy6/LL19feXRMquk7Ec6voYdUUgaVp/nEw2F+2xvh1 lFz2siigg1W7uunqpLkWdq9dqqcfZBZsd3oEMJqoHZnoTjmuj2u56PlbFMTqcisdQyIcO0zKAQu 31xZpJL8HNILFPBokZtHc9foir/3somMv+wR7YdYHZhx+70RmElL6FLyDG08Z1QzPpsdqTlZH9Q w0GssY69oJ/5NfuZnwifbNN4aZCwjuSv/d1GM9MK8GEIwhbDkegdStOUNCpwfluG8qXnFC+YSeJ 1A6C2HKXSTPtqwiGIwrUsh/RBLJEzvFiCRihrX+fxUPrwq+pfqEXyruzpY1uG6omquVDAkVzAOU oNOTCk+JV3dTZ6q8zS2oOE4guCiWpYiilEq8e6RaDyiYY+R7LmTqikUuhwIoZi7Z4K2fd+hFzdD TWFWNhjQLRVWpv12povcafhSxgiLMk9ew+RPYy6Oq92YdKPyHQXzgIHbrJKO4wgPBBUBJcIJYti w14xXE4d/ReUhsDAzo9O1Z/yI6r1vFB4GM1jLA3DLtGpmDBU4AqKJz5sx1vPajkrDHcd00E+Br3 VlVvjjLKvISBCTA== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 Here are some patches from Geliang, doing different cleanups, and supporting 'ip mptcp' in more MPTCP selftests. Patch 1 checks that TC is available in selftests requiring it. Patch 2 adds 'ms' units in TC commands, to avoid confusions. Patches 3-9 are some prerequisites for patch 10: some export code from mptcp_join.sh to mptcp_lib.sh, to be re-used in pm_netlink.sh, mptcp_sockopt.sh and simult_flows.sh ; and others add helpers to pm_netlink.sh to easily support both 'ip mptcp' and 'pm_nl_ctl' tools to interact with the in-kernel MPTCP path-manager. Patch 10 adds a '-i' parameter in mptcp_sockopt.sh, pm_netlink.sh, and simult_flows.sh to use 'ip mptcp' tool instead of 'pm_nl_ctl'. Patch 11 fixes some ShellCheck warnings in pm_netlink.sh, in order to drop a ShellCheck's 'disable' instruction. Signed-off-by: Matthieu Baerts (NGI0) --- Geliang Tang (11): selftests: mptcp: add tc check for check_tools selftests: mptcp: add ms units for tc-netem delay selftests: mptcp: export ip_mptcp to mptcp_lib selftests: mptcp: netlink: add 'limits' helpers selftests: mptcp: add {get,format}_endpoint(s) helpers selftests: mptcp: netlink: add change_address helper selftests: mptcp: join: update endpoint ops selftests: mptcp: export pm_nl endpoint ops selftests: mptcp: use pm_nl endpoint ops selftests: mptcp: ip_mptcp option for more scripts selftests: mptcp: netlink: drop disable=SC2086 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 2 +- tools/testing/selftests/net/mptcp/mptcp_join.sh | 155 ++---------- tools/testing/selftests/net/mptcp/mptcp_lib.sh | 135 ++++++++++ tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 34 ++- tools/testing/selftests/net/mptcp/pm_netlink.sh | 281 +++++++++++++-------- tools/testing/selftests/net/mptcp/simult_flows.sh | 20 +- 6 files changed, 375 insertions(+), 252 deletions(-) --- base-commit: d76c740b2eaaddc5fc3a8b21eaec5b6b11e8c3f5 change-id: 20240405-upstream-net-next-20240405-mptcp-selftests-refactoring-f5ed9780df8e Best regards, -- Matthieu Baerts (NGI0)