bnxt_en: do not map packet buffers twice
authorAndy Gospodarek <andrew.gospodarek@broadcom.com>
Thu, 14 Dec 2023 21:31:38 +0000 (13:31 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Dec 2023 18:14:40 +0000 (10:14 -0800)
commit23c93c3b6275a59f2a685f4a693944b53c31df4e
tree23f8e1e838336c85dad64a8babfc3158aeb3714f
parent64b8bc7d5f1434c636a40bdcfcd42b278d1714be
bnxt_en: do not map packet buffers twice

Remove double-mapping of DMA buffers as it can prevent page pool entries
from being freed.  Mapping is managed by page pool infrastructure and
was previously managed by the driver in __bnxt_alloc_rx_page before
allowing the page pool infrastructure to manage it.

Fixes: 578fcfd26e2a ("bnxt_en: Let the page pool manage the DMA mapping")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: David Wei <dw@davidwei.uk>
Link: https://lore.kernel.org/r/20231214213138.98095-1-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c