Article View: linux.kernel.netdev
Article #7694Re: [PATCH net] xsk: restore UMEM flags after failed pool assignment
From: patchwork-bot+netdevbpf
Date: Tue, 27 Oct 2026 00:20
Date: Tue, 27 Oct 2026 00:20
29 lines
9033 bytes
9033 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 21 Oct 2026 22:47:33 +0000 you wrote:
> xp_assign_dev() sets XDP_UMEM_SG_FLAG before checking whether the
> device supports multibuffer zero-copy. If assignment fails, xsk_bind()
> destroys the pool but retains the registered UMEM. A subsequent bind
> without XDP_USE_SG inherits the stale flag.
>
> The flag also changes RX buffer sizing after DMA mapping. On igc, a
> failed SG bind followed by a non-SG retry with 4096-byte chunks and
> 1792 bytes of headroom passes admission with 2048 bytes, but programs
> a 1024-byte RX buffer. On I225-V hardware, an ordinary 1514-byte frame
> is truncated to 1024 bytes or 1008 with RX timestamps enabled.
> Restoring the original flags eliminates the truncation in both cases.
>
> [...]
Here is the summary with links:
- [net] xsk: restore UMEM flags after failed pool assignment
https://git.kernel.org/netdev/net/c/b88b826ec54a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179306040962.3479540.779090181651847653.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352147-linux-kernel-netdev=dewy.ruReferences:
<20261021224705.2078753-1-p@1g4.org>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-352147-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] xsk: restore UMEM flags after failed pool assignment Date: Tue, 27 Oct 2026 00:20:09 +0000 Organization: Usenet Network Message-ID: <179306040962.3479540.779090181651847653.git-patchwork-notify@kernel.org> References: <20261021224705.2078753-1-p@1g4.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1430455"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0fzU3lTKjNrqE1O4RSIgijpqPKU= sha256:IsXaZCbcMwZfj/f62MxDZCp1FZ1Fl1mTCYlTT8+tiMg= sha1:c0wRJzV/RY4Nm5YcZYLJ43JGihI= sha256:QoLrFL+JKrmSIgbEAvjN7TPtvhVG3kt+201lRYV6BfY= 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 63F64125BD7; Tue, 27 Oct 2026 03:26:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 bAFL6Ic7D819; Tue, 27 Oct 2026 03:26:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352147-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id BE395125BC4; Tue, 27 Oct 2026 03:26:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 0A1022BCE2; Tue, 27 Oct 2026 00:20:46 +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=1793060427; b=HTYxdI7+SAyJbfGosse9PwiS5q5wym85rwqINTrv5UXU36/03NrkpoZU354dRFIKuLll pHLl8kv4kAXRHnFFe4vx7vNNs4+gd6Rnj12kBZnctoWo+iZaDZD2XBtYhroQb6OJ8PalD /haCYnwtHPYuvobdcSkDnIO0J6k+3+aLjPXhI0qMyehEQ4IPQnD3DgsL1InhP/Ot1/OO8 t3vGOW0q9nTO+q8FdXTa7RAgZw1IcpzcASvw7lXQZ36e0TYuop0sbHInAkfUs/CPuAbf9 Cuk046irgLzyC7vHBKa3dkauOXGuP7s8TJ3G5DfSbsAewo9/PcLMEK2qYS97k+O4Xug== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793060427; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=fnFK9si7GCQQ1LNZF3afXP0EKD127WuNV6E27ntNrtI=; b=k70X9sbYjh+yFuH/V1OCNN8bHrQ43G3uZt31dojzOcBcuIzIdg4/wyuQYxRxinnEWZYI lXs9mpG2Ynvq7BiiQEVSj4Qn7IGqXLvs+ZOL2/vb3IkbdeDsmk8qGd4oDEtTrFBhNNVi5 L6RBfyrNoUMWyMOPuZfIDm254PgOLHgxmU932muNn4JakRTU0c7ZdOU30AoaRofygsPSy slPcBgDvVk94ZoZqlUNiNURiX5JY6ZyuLG25FDfGOBaYKgcMQMDGt0by48jfWmcFcheEb HccaGOEgb3Ee6jRdjkeJmje2aIDDxQJYyJQujvNskTxiDPGylkxwgsSRhP6jWwpLGsg== 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=ZCE9sb19; 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 84AB760A2617; Tue, 27 Oct 2026 00:20:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZCE9sb19 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=1793060411; b=s16SlSAkvH/aMP7JKe9BoKf7Z5JFy1CCS9qoXnRi1tMvbEwLXBDUQvy3qOYs40m56zjg x71U76yOZsROpEvzV0ONx2JR9f8ApXg/HAPgQlVxstMwsIRyegn5MEOnJ+JkKVSmeFc1g JJ2/d/aVbI0MONYJFOmmQskzc9ubnsiZD4vPD65FwNNZbZiQavwP7NTMk/dLK1fECY6uU c81hMg6QL3uWy4pw8s2bsE5rjVHbOMPt9KBJqfFc0VZIZCvxCJfZ86DBCGF+2n4YrJCjG Q84cmlpWqF7GPdr7kKmabCe+QKYZ8QyfYQfcwvAt/JCLlAoT4p+4U17n+JE+QBMC7PA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793060411; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=fnFK9si7GCQQ1LNZF3afXP0EKD127WuNV6E27ntNrtI=; b=sWZoIrl3ARohgjBCbbMFkKUk5xcEmuAwjvb2/3XG6Sf6CsPYNndMjeIikIh/p6lG4muq EGRxm8ucIIBCTdmgUQr52U6Hq79FevH8M/6r4kfhV1WJGdRT3wPgaMhyNwmwvYXKlXrba VA9+r/9pzk+JM6E0lefgEf135NzzhHx51SY7U4+wW7YriMxPhaTH2m30sMCJ79LFZEkhc Szfmzj1Wcb83SdsaVIjG5nQn6K/tAZTChpXjV8GDW9uEaMa74yaA+jwXro/8krhYKS0Ja +ZL/9v8fgFoMjxD3qPC2EgLXhdjJ0N5DjDJaJKojLjB73c75aw59q05+wWo3Dfz/Vew== 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=ZCE9sb19; 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 60AA1606A323; Tue, 27 Oct 2026 00:20:11 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11DA01F01825; Tue, 27 Oct 2026 00:20:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793060411; bh=fnFK9si7GCQQ1LNZF3afXP0EKD127WuNV6E27ntNrtI=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=ZCE9sb193IITckGJMy4UDYALM9IYBoaAVAbgZByCz2ebt5phbW38y7XF2KWvVKzox Rju2onQRKztTKeYsn42izwJGJZVsox6cBukQIoV/7K+stbAQRf4uEquer/Oek0FtXa BV+oU67TDoZ3tspwY2t4qUTU/qsO7Fqlx+FrylhipaVwQDlLHVKsgXAODmCRMoEEp3 ZaJYXhO0/oTHNkngHEI8CWJv9UY0vhpAyGaKuR5F2NHtHViRRGzn3m3E6hRXhn0cKx Ad611shbxDcVGGNBkkq8OJuMGnCHc0ay1SlrSnIUwfB914CI5oJlM957lgTM/K27zh Dzx6TVrKWskIg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 0736F3AA80F1; Tue, 27 Oct 2026 00:20:11 +0000 (UTC) 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 X-In-Reply-To: <20261021224705.2078753-1-p@1g4.org> X-Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, sdf@fomichev.me, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org