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=1795878521; b=BssdPesnAYtWKSJe0t06PUUtLXja6G8/dR2DSCrC+jh2G7xtsuydsJlng+sB666GQajl 9sI7GwLKT5z3FUz/lGkEqRfDOW3KDE9depPv/k49yj7VA95zIDX6Xbk9wxgAzurd2cOz0 6GNuBtWwtV7B+4Wig6F0NMEBhcsD6DZsLA1ZS0ung861bpDBtknjcCVMyrvxplB8Slozj OyTBCgMsh+siLRM5s8dJz0RGrYPuSeUa51mLJ8Se1AhvMIQBLLagde3RVcXTLQkCUJGb/ 0qe8Aa+B6Ze83EhD8kRNT+VYp2kurv0lKbNP2ldM8/WTKH4RVQelxqwWe5LUSOe8xnA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795878521; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=IpX33+YvZ5Kr5mBWGRLTchpaEb4NWsxDsGcaE3+GYpI=; b=BEIKicLkRoy6mmNNdiO17VB+DJVUd1rv3cQT+f5ys96WgOc+kXdRmbqj45wuf4DN+L8q xI/joybxZe0NYEZQi93MDWYiv0DSJekkllHDkfJzq7VVvt7gR/JeyxnsfjyjEKDsdRly+ yrBwgfwLGkRwR/5uGb3N2s26XLYQxlwrqoOwBm0aTtogGKvCXstlo+U/Ud3PpMtWd+Za/ cRANb88VtBgjifWeTWieE3i8mrPCI8SkPxJRS62xOlT502NQlbK0VluPQ9NlWtDfUyXar By/bABVzotZN6sBU/T0xt+E/eaUx7tyEEGsiqYhvtcv/pe/DlkESSTMLFmbp7kRt9OQ== 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="OvO8/vBk"; 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 B0BC0606A323 for ; Sat, 28 Nov 2026 15:08:41 +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=OvO8/vBk Received: by smtp.kernel.org (Postfix) with ESMTPSA id C22051F000C1; Sat, 28 Nov 2026 15:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795878521; bh=IpX33+YvZ5Kr5mBWGRLTchpaEb4NWsxDsGcaE3+GYpI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=OvO8/vBk88JSn5dox3HQRHY8EVfupkr2AXnu7W+DSdNXBS7PL5kK/FT+unn4oOzu5 iIegSGukzV9XRZbIUO/lO6pXMal61KAYRu8hUll+u1zW0xbWQ/bob6XmJn8lAk3pvp iBm+XKq6ggcTGTH+VO7kZr/HwcrsjwyYn5ZBnUmZL2XKIDSkBL1qKN9tvk5fBUka82 eiJxtt57xq2LjSTXRDXk7nE8yPZB7jj0TMVnaE5kBbLBg8Cb3eKDLE4GldOy8aSBBP No/9KvRD+ZI6bpbxG70sIOALolOzRy4Dr2vxmIpHdI+LA9EPvE7nJu1Fw+MBJlrTKc 4hyUeq/naQ3Iw== Subject: Re: [PATCH v6 net-next 10/15] selftests: xsk: prepare xskxceiver for endpoints on two hosts From: netdev-bot+sashiko@kernel.org To: maciej.fijalkowski@intel.com Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com, stfomichev@gmail.com, kuba@kernel.org, pabeni@redhat.com, tushar.vyavahare@intel.com, kerneljasonxing@gmail.com, bjorn@kernel.org Date: Sat, 28 Nov 2026 15:08:40 +0000 Message-ID: <179587852037.3135.13204692766762577033@kernel.org> In-Reply-To: <20261127150527.1122049-11-maciej.fijalkowski@intel.com> References: <20261127150527.1122049-11-maciej.fijalkowski@intel.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The patch says the new SKIP message lets the peer of a skipping endpoint skip too. - [Low] The commit message leaves out two behaviour changes that affect verdicts. -- selftests: xsk: prepare xskxceiver for endpoints on two hosts This commit prepares xskxceiver to run each case between a zero-copy endpoint and an SKB-mode endpoint on two hosts. It adds --queue, --max-frags and --timeout, a SKIP control message, and probing of only the endpoint's own mode. It also changes the default case MTU to 1500, and cleanup_iface() now restores the original MTU. > Cases now default to an MTU of 1500 rather than 1518: IFLA_MTU is the > L3 MTU, so the old default changed it for every case, which can reset a > NIC. An SKB-mode endpoint raises > its MTU only when a case needs more, and cleanup_iface() restores it > after the XDP detach, retrying for up to --timeout, as a driver can > refuse it while it holds the pool of a closed socket. [Severity: Low] This isn't a bug, but the commit message leaves out two changes that affect verdicts. testapp_adjust_tail_grow() and testapp_adjust_tail_grow_mb() used to skip whenever test->mode == TEST_MODE_SKB. They now call adjust_tail_grow_skip(), which also requires ifobj_is_local(test->ifobj_rx). An SKB-mode TX endpoint now runs these cases and learns about a skip from its peer. The verdict is now reported from main() after cleanup_iface(). A failed MTU restore turns a PASS or SKIP into TEST_FAILURE. Because ret is then no longer TEST_SKIP, xsk_peer_skip() is not called. The peer gets EOF without a SKIP and reports a sync failure. The rule that a failed restore fails the case appears only in a code comment. Could the commit message mention both changes? > diff --git a/tools/testing/selftests/net/lib/xsk/xskxceiver.c b/tools/testing/selftests/net/lib/xsk/xskxceiver.c > index f7fa9ab93512d..7ef6f08538bd7 100644 > --- a/tools/testing/selftests/net/lib/xsk/xskxceiver.c > +++ b/tools/testing/selftests/net/lib/xsk/xskxceiver.c [ ... ] > @@ -558,8 +598,17 @@ int main(int argc, char **argv) > > out: > xsk_set_endpoint(NULL); > - cleanup_iface(ifobj_tx); > - cleanup_iface(ifobj_rx); > + err = cleanup_iface(ifobj_tx); > + err |= cleanup_iface(ifobj_rx); > + /* A passed or skipped case still fails if it cannot restore the MTU. */ > + if (err) > + ret = TEST_FAILURE; > + /* After the cleanup, which can still fail a case that ran. */ > + if (test.test_func) > + report_pkt_test(&test, ret); > + /* The peer skips the case too, rather than fail on the closed connection. */ > + if (ret == TEST_SKIP) > + xsk_peer_skip(peer, opt_timeout * 1000); [Severity: Low] Does the peer really skip too in the XDP_ADJUST_TAIL_* cases when the skip is decided after the traffic step? Take an RX driver whose bpf_xdp_adjust_tail() returns -EOPNOTSUPP. xsk_xdp_adjust_tail() redirects the packet unchanged, and __receive_pkts() fails on the length. The RX side then does: testapp_adjust_tail() testapp_xdp_adjust_tail()->...->testapp_validate_rx_endpoint() if (!is_adjust_tail_supported(ifobject->xdp_progs)) { test->adjust_tail_support = false; return TEST_PASS; } ... if (!test->adjust_tail_support) return TEST_SKIP; No ABORT is sent, and the SKIP goes to the peer only from this point in main(), after cleanup. The TX process never clears its own copy of adjust_tail_support. It sends DEFAULT_BATCH_SIZE packets, well below the in-flight limit, so it never reaches the new xsk_peer_skipped() check in __send_pkts(). If the SKIP arrives during pacing_tx_sync(), peer_drain() treats it as a closed peer and returns 0. This single-step case also never calls sync_endpoints() again. So TX's testapp_adjust_tail() returns 0. TX reports PASS while RX reports SKIP for the same case. The drivers/net/xsk.py harness later in the series still combines exit codes of {0, SKIP} into a skip. However, this comment and the comment above xsk_peer_skip() ("so that it skips too") do not hold on this path. Should the comments say so, or should the TX side pick up a SKIP that arrives after the traffic step? -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261127150527.1122049-1-maciej.fijalkowski%40intel.com