]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
net: bcmgenet: fix leaking free_bds
authorJustin Chen <justin.chen@broadcom.com>
Mon, 6 Apr 2026 17:57:55 +0000 (10:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 03:19:45 +0000 (20:19 -0700)
commit3f3168300efb839028328d720ab3962f91d6a0d0
tree5447a796b879b423a1cac2db8da5a8f1f30095ab
parent57f3f53d2c9c5a9e133596e2f7bc1c50688a6d38
net: bcmgenet: fix leaking free_bds

While reclaiming the tx queue we fast forward the write pointer to
drop any data in flight. These dropped frames are not added back
to the pool of free bds. We also need to tell the netdev that we
are dropping said data.

Fixes: f1bacae8b655 ("net: bcmgenet: support reclaiming unsent Tx packets")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Tested-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260406175756.134567-3-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c