eth: stmmac: let page recycling happen with skbs
authorJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 01:04:07 +0000 (18:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Jul 2023 01:50:18 +0000 (18:50 -0700)
commit98e2727c79d007d99a026eb66f481908e66af263
treeb514bec3504d246489da0bd70022601906cdb8e2
parentb03f68ba26c85671c6734b14ea37a5955b0fb8d3
eth: stmmac: let page recycling happen with skbs

stmmac removes pages from the page pool after attaching them
to skbs. Use page recycling instead.

skb heads are always copied, and pages are always from page
pool in this driver. We could as well mark all allocated skbs
for recycling.

Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Link: https://lore.kernel.org/r/20230720010409.1967072-3-kuba@kernel.org
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c