From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310547; b=DhoY6tWLaLWptVwqwzaDYnsgdDOgNZGINa+tp5gLaD8bGAPUor55ofAwxgpLFPUZ2Nm8 NnBJfBuHf/2WZg0rsnZlci5K3bZbQQUzf8ZcAKpdKcIyAcZkTy8o1NkKJQzvz7AYe9w2k hsOQZz0igE9OaUB2k3OBFjQs616kUBwzQOZAut2fvr7FUz8G0Z5FqWWZueCi0LaalLTmO wdtIICp4FZWfzxY5YYDp9veWmbD+jus7O2bH+lD6N83QIpG+0A6pcNRr3ohSMXK4DNicP u0tt37MYO9TQGuWexnDVV5B9RX1SwYskIf31CvpVhsoNVhGpPIr6syUQjdT/zB+FFCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310547; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=oleFf6ntc02Te1vo775IemKxblp4GsTKivVBoySGa+k=; b=B2lJIT5ex3BiegIVg5FBs/IcjL+o7xX3euu4S5ittJT5yCx/1eFNxzPcLmg00AI/YjpN 2QkHbeAl8B7mt9v08/qiQnjnlkyEowJUdCp3t+k2IR8iRH+cFFDbFTD4fwu409eVwxFhV 9BXV5dOBRRUPrLlkHLjT9fkD9RZMOxkaB6/tNGa/iIVrbQKxAVk+9nMMjj3d61xClRXFA /SXbxrcJhpu0jarF3CJ3HSWjPxdYDNpQpK2OjOZJTJ5zGydwsaZ9qKX43BcvhFcpHaFb7 xxB3mQhlNLYNonDIefHTSWCi7Y2VoAsc5quV04RBERWtCFBq0SYWKQ+nuBm72KnS49A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F8hQFB9M; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CCB1606A322 for ; Thu, 3 Dec 2026 15:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F8hQFB9M Received: by smtp.kernel.org (Postfix) with ESMTPSA id B47D61F00893; Thu, 3 Dec 2026 15:09:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310546; bh=oleFf6ntc02Te1vo775IemKxblp4GsTKivVBoySGa+k=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=F8hQFB9Mi2xGLyjVsovtZKpJAQm3AswmmD2/WcS+zU3JYiVTd0zMYDXDGmLtIQC2J ejnjlrgBB8q9LFdixCK3+PK/z2cV+aWnRW3ejEnMGVX41kpChMG2r369Nk/QM6kEvS 4DgewCZh8BTwUePDB52eXRKtc44huXzQtcHDcxw2pyXEiuXi8vWFtYAU0gcFa9b6RB Q8VHjqDSdX0HxdY88DB8IrkjJUWsy0NB9NdHn/bSjWxMNkB2AKBSn0GYKlC1cNNRfn 6MkWkHxZBLz1/CcvUtZccdnwNznriHE5t8/i4SzLyssDPcmWbiEvDo1MQINVQ1DH7B k2RDlcUWofs0A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH mptcp-next 2/2] selftests: mptcp: check the aggregate pacing rate across two paths Reply-To: sashiko-reviews@lists.linux.dev To: "Ruilin Mao" , mptcp@lists.linux.dev In-Reply-To: <179630953226.20.8856777451271939865.mptcp-578-0002@gmail.com> References: <179630953225.20.4977913523988952504.mptcp-578-0000@gmail.com> <179630953226.20.8856777451271939865.mptcp-578-0002@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:09:06 +0000 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Medium] selftests: mptcp: mid-script mptcp_lib_kallsyms_has() aborts simult_flows.sh - [Low] selftests: mptcp: silent skip in simult_flows.sh lacks reason string - [Low] selftests: mptcp: loose max_time in simult_flows.sh misses over-throttling - [Low] selftests: mptcp: unconditional pacing checks overwrite retc in do_transfer() -- commit d7318c01326d99e2d3acfdbd5eb6d1d7164dba08 Author: Ruilin Mao selftests: mptcp: check the aggregate pacing rate across two paths This commit adds a -a option to mptcp_connect to set SO_MAX_PACING_RATE and adds an aggregate pacing rate subtest to simult_flows.sh over two 10-Mbit/s paths. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/578 > diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/te= sting/selftests/net/mptcp/simult_flows.sh > index 3ea3d1efe32e1..d4a6bda0e3a24 100755 > --- a/tools/testing/selftests/net/mptcp/simult_flows.sh > +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh [ ... ] > @@ -184,6 +198,23 @@ do_transfer() > wait $spid > local rets=3D$? > =20 > + if ((rate)); then > + end=3D$(date +%s%N) > + elapsed=3D$(((end - start) / 1000000)) > + # Allow one GSO burst and timer jitter at the endpoints. > + min_time=3D$((size * 1000 / rate * 90 / 100)) > + if ((elapsed < min_time)); then > + mptcp_lib_print_err "pacing: ${elapsed}ms, minimum ${min_time}ms" > + retc=3D1 > + fi > + tx1=3D$(($(get_tx_bytes ns1eth1) - tx1)) > + tx2=3D$(($(get_tx_bytes ns1eth2) - tx2)) > + if ((tx1 < 65536 || tx2 < 65536)); then > + mptcp_lib_print_err "path byte counts too low: $tx1 and $tx2" > + retc=3D1 > + fi > + fi [Severity: Low] Should these pacing checks require retc and rets to be zero and track failures in a separate variable? When mptcp_connect fails early, elapsed and tx1/tx2 miss their thresholds, printing spurious pacing errors and overwriting retc with 1 before mptcp_lib_pr_fail() reports it. Even when both peers exit 0, mutating retc makes mptcp_lib_pr_fail() misreport a client exit code of 1. [ ... ] > @@ -309,6 +340,23 @@ done > setup > mptcp_lib_subtests_last_ts_reset > run_test 10 10 0 0 20 20 "balanced bwidth" > + > +# Keep the two 10-Mbit/s paths from the previous test. A 14-Mbit/s > +# connection cap leaves room to use both while exposing independent caps. > +msg=3D"aggregate pacing rate" > +mptcp_lib_print_title "$msg" > +if mptcp_lib_kallsyms_has 'mptcp_pacing_account$'; then [Severity: Medium] Can calling mptcp_lib_kallsyms_has() mid-script abort simult_flows.sh when CONFIG_KALLSYMS is disabled? mptcp_lib_kallsyms_has() calls mptcp_lib_check_kallsyms(), which runs exit ${KSFT_SKIP} when /proc/kallsyms is absent. Terminating after the first run_test() skips the remaining subtests, drops the TAP summary, and masks any failure already recorded in ret. Calling mptcp_lib_check_kallsyms() at startup like the sibling MPTCP selftests, or checking for /proc/kallsyms before this test, would avoid exiting mid-run. > + do_transfer "$large" "$small" "$((timeout_poll * 1000))" 1750000 [Severity: Low] Is passing $((timeout_poll * 1000)) (30000 ms) as max_time too loose to cat= ch over-throttling? For a 16 MiB transfer capped at 14 Mbit/s (~9.6 s expected), a 30 s upper bound lets a 7-Mbit/s over-throttled transfer or a mostly single-path 10-Mbit/s transfer (after 64 KiB on the second path) pass. Deriving max_ti= me from the 14-Mbit/s rate and slack, like run_test() does, would catch that. [ ... ] > +else > + mptcp_lib_pr_skip > + mptcp_lib_result_skip "$msg" > +fi [Severity: Low] Should mptcp_lib_pr_skip take a reason string here? Calling it with no arguments prints a bare "[SKIP]" without saying which kernel feature is missing (for example, "SO_MAX_PACING_RATE not supported by the kernel"). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179630953225.20.497= 7913523988952504.mptcp-578-0000@gmail.com?part=3D2