linux/drivers/net/ethernet/broadcom
Jakub Kicinski de76fc134f bnxt: make sure we return pages to the pool
[ Upstream commit 97f5e03a4a ]

Before the commit under Fixes the page would have been released
from the pool before the napi_alloc_skb() call, so normal page
freeing was fine (released page == no longer in the pool).

After the change we just mark the page for recycling so it's still
in the pool if the skb alloc fails, we need to recycle.

Same commit added the same bug in the new bnxt_rx_multi_page_skb().

Fixes: 1dc4c557bf ("bnxt: adding bnxt_xdp_build_skb to build skb from multibuffer xdp_buff")
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Link: https://lore.kernel.org/r/20230111042547.987749-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:58:32 +01:00
..
bnx2x bnx2x: fix pci device refcount leak in bnx2x_vf_is_pcie_pending() 2022-11-22 13:32:26 +01:00
bnxt bnxt: make sure we return pages to the pool 2023-01-18 11:58:32 +01:00
genet
b44.c
b44.h
bcm63xx_enet.c
bcm63xx_enet.h
bcm4908_enet.c net: broadcom: bcm4908_enet: update TX stats after actual transmission 2022-10-27 10:27:53 -07:00
bcm4908_enet.h
bcmsysport.c net: bcmsysport: Indicate MAC is in charge of PHY PM 2022-10-27 15:56:07 +02:00
bcmsysport.h
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c
bgmac.c net: bgmac: Drop free_netdev() from bgmac_enet_remove() 2022-11-11 19:48:35 -08:00
bgmac.h
bnx2_fw.h
bnx2.c bnx2: Use kmalloc_size_roundup() to match ksize() usage 2022-12-31 13:32:59 +01:00
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c
cnic.h
Kconfig net: broadcom: Add PTP_1588_CLOCK_OPTIONAL dependency for BCMGENET under ARCH_BCM2835 2022-11-30 20:37:03 -08:00
Makefile
sb1250-mac.c
tg3.c
tg3.h
unimac.h