Article View: linux.kernel.netdev
Article #3478Re: [PATCH v3 net-next 02/15] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE
From: Björn Töpel
Date: Thu, 15 Oct 2026 08:15
Date: Thu, 15 Oct 2026 08:15
19 lines
6392 bytes
6392 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes: > HW_SW_MAX_RING_SIZE gives the RX UMEM 8k frames and 8k rings, then > sends batches of 2k and of the maximum HW TX ring size minus 8. This > only works in the single-interface mode, where the TX socket uses the > RX UMEM, and veth, which cannot change its ring sizes, skips the case. > With two interfaces, TX has its own UMEM of DEFAULT_UMEM_BUFFERS (1k) > frames and 2k rings: the in-flight limit in __send_pkts() turns > negative for a 2k batch, so TX never sends and RX times out, and the > second batch would not fit in the TX ring anyway. > > The next patch removes the single-interface mode, so size the TX UMEM > like the RX one. The shared UMEM setup copies the RX UMEM over the TX > one and is not affected. > > Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID:
<8733u78jlw.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346595-linux-kernel-netdev=dewy.ruReferences:
<20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-3-maciej.fijalkowski@intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346595-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v3 net-next 02/15] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE Date: Thu, 15 Oct 2026 10:15:55 +0200 Organization: Usenet Network Message-ID: <8733u78jlw.fsf@all.your.base.are.belong.to.us> References: <20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-3-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="2482736"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:iI6StzLFPU/IfH7U433NtuKsm9k= sha256:dhnY9PUGcXC818gp8G6GpRsadrzuhfDFkFn5z/krkw8= sha1:0ZwQ/4Xx1vLTdB21o1mtvlvQ3gs= sha256:NwgeghlJepr5PYLUjmVhqTGLOOFSjRE0QYY1JUbfKlg= 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 2800C110274; Thu, 15 Oct 2026 11:19:39 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 LVB6afLbFRkx; Thu, 15 Oct 2026 11:19:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-346595-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 7CA5F110271; Thu, 15 Oct 2026 11:19:27 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 3F7CD3D1E0; Thu, 15 Oct 2026 08:16:03 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66CB4A204A; Thu, 15 Oct 2026 08:16:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iDsncdV7" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 AB94738C421; Thu, 15 Oct 2026 08:15:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792052160; cv=none; b=tDv3i+4GSCB1umgEytHVy0bHh4xMlYFVvCgwtw+cNjIdolJmSTPL676h5+qPYJGsLxnqafQYL7XfLdKm0xM3ybdTT6OLNGOKRJbazO6cRd8Rd62M+KhAnMNtqC1K+VlnupBfjMSM+8ASGKZNB1K/USN5rexLVykmWHPCqFo5Cg4= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792052160; c=relaxed/simple; bh=q2u2xRSdL3HoVQMTqEJ/RIleIT+F1sJVsSKd4l0Btes=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=FE66HQP4ZWZ9C3lFmGcBiGOOwUaoxUAIsw/5faNw2m+SpgesoL/Zad3TR3T3boq2sJWSzmawjUxIGkW8lozPbfNL9hMGP++wQ4+wgJK0dPJcJHFQEM63lg19jBCG4d+kpUV4+1YRd8lyTbxlVRICqf2YVnZ7oftu9+AU3CFDG0E= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iDsncdV7; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 606B01F000C4; Thu, 15 Oct 2026 08:15:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792052159; bh=q2u2xRSdL3HoVQMTqEJ/RIleIT+F1sJVsSKd4l0Btes=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=iDsncdV7srtDn/ZF+1ezqfImPYkMXs/Or5MgmEyESmOgPMno0vwPK82U4+YSUU1GG /YtygL/oHK1uE78gQvMqtI4lvJfQKCcKcBW74m4Y6XqKtUQOAlb0r1jLF/KnMkmYmS iRP+rs9/BrdmQ35UCNiWYvM/tBmQcDaSFDuFIqBqLlS8jZNKwbFb22AlYM0STsu+3C ImJQzUGlQDBhMBoqfiG5ObGDxTkJfwxcPXY6c1qmp7EA4fMCVxZ5ZbFn/aXJv/ytHM dkiicSYWIPwZutstbeSqly0gp/ElXftX9zfjgufl6kp2eRmCdHeb/1n2jPW3mk1GUD VrjV4Av2GxBjA== X-Cc: bpf@vger.kernel.org, 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: <20261014184539.774708-3-maciej.fijalkowski@intel.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>