summaryrefslogtreecommitdiff
path: root/drivers/dma/mediatek
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@broadcom.com>2023-07-31 07:20:42 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-11 12:08:16 +0200
commite9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16 (patch)
treea1146b56e4047d5613019d787ed5bc39bb57de7f /drivers/dma/mediatek
parent64763dd851faaabb2b28a07878ea59e46734cd73 (diff)
downloadlinux-e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16.tar.gz
linux-e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16.tar.bz2
linux-e9f11bfc03fb0d3c86f91b8ae945bb10f7e19c16.zip
bnxt_en: Fix page pool logic for page size >= 64K
[ Upstream commit f6974b4c2d8e1062b5a52228ee47293c15b4ee1e ] The RXBD length field on all bnxt chips is 16-bit and so we cannot support a full page when the native page size is 64K or greater. The non-XDP (non page pool) code path has logic to handle this but the XDP page pool code path does not handle this. Add the missing logic to use page_pool_dev_alloc_frag() to allocate 32K chunks if the page size is 64K or greater. Fixes: 9f4b28301ce6 ("bnxt: XDP multibuffer enablement") Link: https://lore.kernel.org/netdev/20230728231829.235716-2-michael.chan@broadcom.com/ Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20230731142043.58855-2-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dma/mediatek')
0 files changed, 0 insertions, 0 deletions