bnxt_en: Use the unified RX page pool buffers for XDP and non-XDP
authorSomnath Kotur <somnath.kotur@broadcom.com>
Thu, 17 Aug 2023 23:19:06 +0000 (16:19 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 19 Aug 2023 02:13:58 +0000 (19:13 -0700)
commit86b05508f7759f41b530c6fec8858124745eada4
tree27f8f82b4f31ccfaf31c2ebfcab762200901a854
parentc6cfc6cd7685a24ea00a24a4fb91aa96d611084e
bnxt_en: Use the unified RX page pool buffers for XDP and non-XDP

Convert to use the page pool buffers for the aggregation ring when
running in non-XDP mode.  This simplifies the driver and we benefit
from the recycling of pages.  Adjust the page pool size to account
for the aggregation ring size.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20230817231911.165035-2-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h