]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fbnic: Fix page chunking logic when PAGE_SIZE > 4K
authorDimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Mon, 13 Oct 2025 21:14:48 +0000 (14:14 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Oct 2025 09:36:29 +0000 (11:36 +0200)
commit4bd451f4c2851eee7b6e17bb6fd6c9caaadbdc18
treea772b6f67c17da04297f95d4f0c7e35b0f34f5d6
parentcb85ca4c0a349e246cd35161088aa3689ae5c580
net: fbnic: Fix page chunking logic when PAGE_SIZE > 4K

The HW always works on a 4K page size. When the OS supports larger
pages, we fragment them across multiple BDQ descriptors.
We were not properly incrementing the descriptor, which resulted in us
specifying the last chunks id/addr and then 15 zero descriptors. This
would cause packet loss and driver crashes. This is not a fix since the
Kconfig prevents use outside of x86.

Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251013211449.1377054-2-dimitri.daskalakis1@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c