]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bnxt: Detach page from page pool before sending up the stack
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 9 Jan 2020 19:35:42 +0000 (11:35 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:19:53 +0000 (16:19 +0100)
commitae424b2ac5bf9588c880f7bd09fee751bce12ee9
treef58b9b9dd2bb98b9089d93934d738810a12a35b7
parentae80df480449b4741ce4b196893c00974b66a7a7
bnxt: Detach page from page pool before sending up the stack

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit 3071c51783b39d6a676d02a9256c3b3f87804285 ]

When running in XDP mode, pages come from the page pool, and should
be freed back to the same pool or specifically detached.  Currently,
when the driver re-initializes, the page pool destruction is delayed
forever since it thinks there are oustanding pages.

Fixes: 322b87ca55f2 ("bnxt_en: add page_pool support")
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c