]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 07:03:44 +0000 (23:03 -0800)
commit83eb9e10ab68e69bdbd4188238de7b51b340ca19
tree18e91106d75dbb2c6164596a112f30f61adf3c4a
parentd2ad60c6974c6f0ee206a4727bd729a385c95719
bnxt: Detach page from page pool before sending up the stack

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: c51cf6058930 ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c