Message ID | 20201211171607.108034-1-ciorneiioana@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 54a57d1c449275ee727154ac106ec1accae012e3 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] dpaa2-eth: fix the size of the mapped SGT buffer | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net |
netdev/subject_prefix | success | Link |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Fri, 11 Dec 2020 19:16:07 +0200 you wrote: > From: Ioana Ciornei <ioana.ciornei@nxp.com> > > This patch fixes an error condition triggered when the code path which > transmits a S/G frame descriptor when the skb's headroom is not enough > for DPAA2's needs. > > We are greated with a splat like the one below when a SGT structure is > recycled and that is because even though a dma_unmap is performed on the > Tx confirmation path, the unmap is not done with the proper size. > > [...] Here is the summary with links: - [net] dpaa2-eth: fix the size of the mapped SGT buffer https://git.kernel.org/netdev/net/c/54a57d1c4492 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index cf9400a9886d..d880ab2a7d96 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -878,7 +878,7 @@ static int dpaa2_eth_build_sg_fd_single_buf(struct dpaa2_eth_priv *priv, swa = (struct dpaa2_eth_swa *)sgt_buf; swa->type = DPAA2_ETH_SWA_SINGLE; swa->single.skb = skb; - swa->sg.sgt_size = sgt_buf_size; + swa->single.sgt_size = sgt_buf_size; /* Separately map the SGT buffer */ sgt_addr = dma_map_single(dev, sgt_buf, sgt_buf_size, DMA_BIDIRECTIONAL);