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)
commitcc5db3150e87fe7f7e947bf333b6c1c97f848ecb
tree159cc5f39b05a5fff4b3055681d72c0f3289e7a9
parent9de506a547c0d172d13a91d69b1a399e6a2c0efa
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