]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:26 +0000 (08:38 +0100)
commitefa7868394b04b5d1fd5f8d798f8f43066379c22
tree878a3020682967c9aa892abd147f12fe055c2718
parenta762cfd791ae2ce047fc83b610f8c56743e3e87f
bnxt: Detach page from page pool before sending up the stack

[ 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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c