Loading
net: fec: implement TSO descriptor cleanup
stable inclusion from stable-v6.6.76 commit d063bec046a04c26bcabf90f36289c77ae51413f category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBW08Q Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d063bec046a04c26bcabf90f36289c77ae51413f -------------------------------- [ Upstream commit 61dc1fd9205bc9d9918aa933a847b08e80b4dc20 ] Implement cleanup of descriptors in the TSO error path of fec_enet_txq_submit_tso(). The cleanup - Unmaps DMA buffers for data descriptors skipping TSO header - Clears all buffer descriptors - Handles extended descriptors by clearing cbd_esc when enabled Fixes: 79f33912 ("net: fec: Add software TSO support") Signed-off-by:Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com> Reviewed-by:
Wei Fang <wei.fang@nxp.com> Link: https://patch.msgid.link/20250120085430.99318-1-dheeraj.linuxdev@gmail.com Signed-off-by:
Paolo Abeni <pabeni@redhat.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit d063bec046a04c26bcabf90f36289c77ae51413f) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>