Re: [PATCH] net: qcom/emac: Use proper free methods during TX

From: Timur Tabi
Date: Mon Mar 05 2018 - 22:06:41 EST


On 3/5/18 8:48 PM, Hemanth Puranik wrote:
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@xxxxxxxxxxxxxx>

Acked-by: Timur Tabi <timur@xxxxxxxxxxxxxx>

--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc. Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.