]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: Use proper free methods during TX
authorHemanth Puranik <hpuranik@codeaurora.org>
Tue, 6 Mar 2018 02:48:06 +0000 (08:18 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 17:21:03 +0000 (12:21 -0500)
commit23182fb2af6d077003d8105d729224558242d70b
tree159cc5f39b05a5fff4b3055681d72c0f3289e7a9
parent6f2ebf057ca031fdd74c756ec2cca2ed8e7d5344
net: qcom/emac: Use proper free methods during TX

This patch fixes the warning messages/call traces seen if DMA debug is
enabled, In case of fragmented skb's memory was allocated using
dma_map_page but freed using dma_unmap_single. This patch modifies buffer
allocations in TX path to use dma_map_page in all the places and
dma_unmap_page while freeing the buffers.

Signed-off-by: Hemanth Puranik <hpuranik@codeaurora.org>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-mac.c