summaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-06-26 09:54:41 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-20 18:41:14 +0200
commitc9bc75c0f346adc0e5916ffe0eede3ef762e72d2 (patch)
tree3d2d912b2183f84eda61b2d3d9f8a437fc90c8c6 /drivers/net/xen-netback/interface.c
parent835a18ada0a7862302b120d47dd7231b15d754ca (diff)
eth: bnxt: take page size into account for page pool recycling rings
[ Upstream commit f7dbedba63124256feb9d9fcf36e8a2e43858d1e ] The Rx rings are filled with Rx buffers. Which are supposed to fit packet headers (or MTU if HW-GRO is disabled). The aggregation buffers are filled with "device pages". Adjust the sizes of the page pool recycling ring appropriately, based on ratio of the size of the buffer on given ring vs system page size. Otherwise on a system with 64kB pages we end up with >700MB of memory sitting in every single page pool cache. Correct the size calculation for the head_pool. Since the buffers there are always small I'm pretty sure I meant to cap the size at 1k, rather than make it the lowest possible size. With 64k pages 1k cache with a 1k ring is 64x larger than we need. Reviewed-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20250626165441.4125047-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions