diff options
author | Po Liu <po.liu@nxp.com> | 2022-02-09 15:33:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:23:30 +0300 |
commit | 0255e93dce7acce5875fc3d0d34e4243de1e3a9b (patch) | |
tree | de1ff4a1198d69fba2d69871748e4650dc86d056 /tools | |
parent | 721992163e0c5df0c1d1e6c1a66cbe338f5e5d49 (diff) | |
download | linux-0255e93dce7acce5875fc3d0d34e4243de1e3a9b.tar.xz |
net:enetc: allocate CBD ring data memory using DMA coherent methods
[ Upstream commit b3a723dbc94a6e38f67669d03b521edd766ad895 ]
To replace the dma_map_single() stream DMA mapping with DMA coherent
method dma_alloc_coherent() which is more simple.
dma_map_single() found by Tim Gardner not proper. Suggested by Claudiu
Manoil and Jakub Kicinski to use dma_alloc_coherent(). Discussion at:
https://lore.kernel.org/netdev/AM9PR04MB8397F300DECD3C44D2EBD07796BD9@AM9PR04MB8397.eurprd04.prod.outlook.com/t/
Fixes: 888ae5a3952ba ("net: enetc: add tc flower psfp offload driver")
cc: Claudiu Manoil <claudiu.manoil@nxp.com>
Reported-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Po Liu <po.liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions