* [PATCH net] eth: fbnic: Increase FBNIC_QUEUE_SIZE_MIN to 64
@ 2026-04-01 16:28 Dimitri Daskalakis
2026-04-02 15:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Dimitri Daskalakis @ 2026-04-01 16:28 UTC (permalink / raw)
To: David S . Miller
Cc: Alexander Duyck, Jakub Kicinski, kernel-team, Andrew Lunn,
Eric Dumazet, Paolo Abeni, Mohsin Bashir, Simon Horman,
Jacob Keller, Mike Marciniszyn, Dimitri Daskalakis,
Bobby Eshleman, netdev
From: Dimitri Daskalakis <daskald@meta.com>
On systems with 64K pages, RX queues will be wedged if users set the
descriptor count to the current minimum (16). Fbnic fragments large
pages into 4K chunks, and scales down the ring size accordingly. With
64K pages and 16 descriptors, the ring size mask is 0 and will never
be filled.
32 descriptors is another special case that wedges the RX rings.
Internally, the rings track pages for the head/tail pointers, not page
fragments. So with 32 descriptors, there's only 1 usable page as one
ring slot is kept empty to disambiguate between an empty/full ring.
As a result, the head pointer never advances and the HW stalls after
consuming 16 page fragments.
Fixes: 0cb4c0a13723 ("eth: fbnic: Implement Rx queue alloc/start/stop/free")
Signed-off-by: Dimitri Daskalakis <daskald@meta.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.h b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.h
index 980965274079..e03c9d2c38dc 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.h
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.h
@@ -38,7 +38,7 @@ struct fbnic_net;
#define FBNIC_MAX_XDPQS 128u
/* These apply to TWQs, TCQ, RCQ */
-#define FBNIC_QUEUE_SIZE_MIN 16u
+#define FBNIC_QUEUE_SIZE_MIN 64u
#define FBNIC_QUEUE_SIZE_MAX SZ_64K
#define FBNIC_TXQ_SIZE_DEFAULT 1024
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net] eth: fbnic: Increase FBNIC_QUEUE_SIZE_MIN to 64
2026-04-01 16:28 [PATCH net] eth: fbnic: Increase FBNIC_QUEUE_SIZE_MIN to 64 Dimitri Daskalakis
@ 2026-04-02 15:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-04-02 15:40 UTC (permalink / raw)
To: Dimitri Daskalakis
Cc: davem, alexanderduyck, kuba, kernel-team, andrew+netdev, edumazet,
pabeni, mohsin.bashr, horms, jacob.e.keller, mike.marciniszyn,
daskald, bobbyeshleman, netdev
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 1 Apr 2026 09:28:48 -0700 you wrote:
> From: Dimitri Daskalakis <daskald@meta.com>
>
> On systems with 64K pages, RX queues will be wedged if users set the
> descriptor count to the current minimum (16). Fbnic fragments large
> pages into 4K chunks, and scales down the ring size accordingly. With
> 64K pages and 16 descriptors, the ring size mask is 0 and will never
> be filled.
>
> [...]
Here is the summary with links:
- [net] eth: fbnic: Increase FBNIC_QUEUE_SIZE_MIN to 64
https://git.kernel.org/netdev/net/c/ec7067e66119
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-02 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 16:28 [PATCH net] eth: fbnic: Increase FBNIC_QUEUE_SIZE_MIN to 64 Dimitri Daskalakis
2026-04-02 15:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox