Article View: linux.kernel.netdev
Article #26382Re: [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net
From: Björn Töpel
Date: Thu, 03 Dec 2026 12:51
Date: Thu, 03 Dec 2026 12:51
56 lines
10623 bytes
10623 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:
> [0] moved the AF_XDP test suite from selftests/bpf to selftests/net.
> This series hooks it up to drv-net, so that it runs over veth in SW CI
> and on a NIC in HW CI; so far our HW runs have been manual. We keep the
> existing xskxceiver cases rather than start from scratch.
>
> xskxceiver ran the RX and TX sides of a case as two threads of one
> process. drv-net needs a process per side, so each endpoint becomes a
> process of its own, and the two talk over xsk_peer, a small TCP control
> channel: READY separates the steps, PROGRESS paces TX by what RX has
> consumed, ABORT stops the peer after a failure, and SKIP makes the peer
> skip a case that its endpoint skips.
>
> drivers/net/xsk.py runs each case between a local and a remote
> endpoint. The remote one is always an SKB-mode xskxceiver, so the remote
> needs no zero-copy support, and both ends share the packet generation
> and validation of the cases.
> - Without NETIF, they run over a veth pair, the remote end in a
> namespace, with the local endpoint receiving in SKB and DRV mode
> (skb_<case> and drv_<case> variants).
> - With NETIF, the local endpoint runs in zero-copy mode once per role
> that xskxceiver -l lists for the case (rx_<case> and tx_<case>), e.g.
> rx_SEND_RECEIVE tests ice_clean_rx_irq_zc() and tx_SEND_RECEIVE
> ice_xmit_zc(). ntuple rules steer the test flow to the AF_XDP queue.
> Every case also runs with the local endpoint busy polling. The single
> interface (loopback) mode is removed.
>
> Over veth, the cases that cannot pass are expected failures without
> being run: XDP_ADJUST_TAIL_SHRINK_MULTI_BUFF and the XDP_ADJUST_TAIL_GROW
> cases, which hit veth and generic XDP limits, and
> HW_SW_{MIN,MAX}_RING_SIZE, as veth has no rings. We can keep them, drop
> them or run them on HW only. The UNALIGNED cases are expected failures
> without huge pages.
>
> Patch 1 fixes a stack overrun, 2-4 prepare the split, 5-8 make the
> endpoints separate processes and remove test_xsk.sh, 9-12 adapt the
> endpoints to two hosts and list the roles of each case, 13-14 prepare
> NetDrvEpEnv for veth, and 15 adds xsk.py.
>
> Known issues:
> - On ice, the RSS reset over netlink fails without [1], which NIPA
> already carries.
> - BIDIRECTIONAL, STAT_RX_DROPPED and TX_QUEUE_CONSUMER do not run on
> HW. I think BIDIRECTIONAL can go, as the rx_ and tx_ variants cover
> both directions.
This passed the NIPA run, right? It would be nice to get it run AF_XDP,
so we can start adding all the missing testcases! ;-) Are there any big
blockers on this version? Or is it good enough so we can start iterating
on the tests?
FWIW, for the two patches, and the series:
Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID:
<87v75a1q9k.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376608-linux-kernel-netdev=dewy.ruReferences:
<20261127150527.1122049-1-maciej.fijalkowski@intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376608-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net Date: Thu, 03 Dec 2026 13:51:19 +0100 Organization: Usenet Network Message-ID: <87v75a1q9k.fsf@all.your.base.are.belong.to.us> References: <20261127150527.1122049-1-maciej.fijalkowski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2493256"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Cj582lJyXRKKkFiG++IZKLqo+f0= sha256:Zk8eY8kklVr7sh0LlE73MGfTYDwYTBEmAt0ISmvlnJQ= sha1:vq08UR1X/RYFIOhp15H4HqqHAA0= sha256:DruIK/hR+VET2CWjhObDqY9CYdoMxUa8AJfFjpZHNu4= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 14CB3117948; Thu, 3 Dec 2026 15:51:35 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhXT4BEl5Qlz; Thu, 3 Dec 2026 15:51:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376608-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id E9D9E117942; Thu, 3 Dec 2026 15:51:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 8966660126F; Thu, 3 Dec 2026 12:51:24 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796302283; b=sFS1pkjLt8naxsfFZJaGG2rZZ3tM+AjD6iHblXZyLUGsLAwiS1TRKuzbRFm6mywliZt3 ShcVfjsO7sdlOjw2JtO3ymCV4/SaTE55vUnvTszDrO8TyuyPZJPJugI7sQjq7VugRsdZ/ raHIM+TjqBG+lN7rN/h8uSRcjaNG005W2Q4p1kWitp3zXFTTBHl3z8yiEql6SarLWXvis o6ny36JsNflXk1WYfZGDRLcE0CYgHBXNxyseyuzFQvrX96VnZT+laj5bhx3ifm+s8t28e jQoVgBmppEwrmkEAtpFVuLcmSOSxugPobPZfTJnCZBdnnA4VOJkedHa82nplVcxUfIA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302283; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=H0UQGldmc5FiUEyCgr1TkO9uDDls+fcBC48YNPhl5NY=; b=wOo+Se1I779TrONzjLjHBOO80Juyc0SpZN6/q8wWno3zvnmXpOqQCz1gU4s6V1iB9Dfd 8wHkvIwJ/hor2JVzcJt/2PK/+rt+klU1ZkTidUm/89GXjO1UaM4Sd57W1+pirV4/N4/Al maiVvhnqyY/ywOd7mMIwKckt2Lcz2B+RtJ9BO/r4bRSkJWAKldF9dgnJXyVHa3wxjbTOH xXcrEJUtwFq99oobMbSmjoP+/Ktd2FL4ad1pQZYeKVyPaKVpFaGsVxKiB5UToYJJEFFd/ nNYwo7Wk06jHJMReh1c0I+pqo5ASJhrhmbyzxCm8/NedmmXOk7AdWkh+tIcBZMsN3wg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eU17cYAP; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E094606A33D; Thu, 3 Dec 2026 12:51:23 +0000 (UTC) X-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=eU17cYAP X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796302282; b=Ik4lUb5ZxQhcr1cqI/z99x/SSOUukP65IxvmDqeTpR2GynlVCoFwvckn3zCfIkR+TSuW xwC+5rPRwWaCQ2p9rbS7iCXem5i3/eL/1izNqJ6RU/N8FbIyuZTYLN1wqJ2CdZRy9BaZE qS2i2Z+te+iDzO3OrzrL8kkZPMmY3qLdztbDbXIUx7fh1VmlLV4Mvpc3mdCXkxxvpLjvY Pkfni2067/pUbQPmhvsK9agv4VhSWcl4sHtl+gbi8mnIq8JcwPiSomuhF9FY/QRyGn0QR tbv4he57payPa9GcTydGzWLUgut44G9fmniIu3i6ma18pRzGPbPoDlD2zO1oUCapNLw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302282; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=H0UQGldmc5FiUEyCgr1TkO9uDDls+fcBC48YNPhl5NY=; b=I1zN94XaffHaH4Fig7L4JZTWjl9gSWbY3U4AD4t5dWIE/wRDY5yCzxlSOYgTIP4YeZnW rnAkFeyVXgIqx15FCQa3t4/539aYWcCo5H0EGNINhZjgrkLN6SvpwhnwPvcZ5uA/jzL6A bi0NPkIXhDsvLCXLL0Z2e2YVCEJ6YFepclM1O5yVYQV2t3GkK3JePUsEw038WrgWK/5zX d9SPLPA+hQYkS4bFA1WkqFTEVWN6/xOcPgEIP63w7KrunIYccrT+lEGKuHI8sYKfuPwZm ZoCMMlLXTbzmcm6/8i6m3si/KLJEISorVb8CyoAixYzhB8gvh42ToNBhovHKmJP9Uuw== X-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=eU17cYAP; arc=none smtp.remote-ip=100.103.45.18 X-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 6C369606A32F for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 12:51:22 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 884FE1F0089A; Thu, 3 Dec 2026 12:51:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796302282; bh=H0UQGldmc5FiUEyCgr1TkO9uDDls+fcBC48YNPhl5NY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=eU17cYAPTM3her70Me4FhAdgnGgqE/H32JBZj/ExS8OCwiLLOA3EaOGSMMONb34/Z UbFRrh4pa81EuDVDeU9A3CEe/vgDnOnvWEpA+NzC6aV08eNtF7rISg2ljKoiGs78rj HAnnRskA9B6E2UnN8/T+6c+Dh/Y2k7Y46UyLkvnb3xWOw8toREV1Y2u87dThkTVBc2 dwsCyfdF/MLMdFsSD5nDNegmshscf2ZyJNvDv4McIKtw+YGhgcHEgoMl7PjmEI9lcC KNo6vFmWUcj7Akx7v0IscwHe4i5qzttROhvhLaMqD0D8U28Uo6AbwDHZ9ZMLDk5uhK vvLKQaASlXn2Q== X-Cc: magnus.karlsson@intel.com, stfomichev@gmail.com, kuba@kernel.org, pabeni@redhat.com, tushar.vyavahare@intel.com, kerneljasonxing@gmail.com, Maciej Fijalkowski <maciej.fijalkowski@intel.com> X-In-Reply-To: <20261127150527.1122049-1-maciej.fijalkowski@intel.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list