diff options
author | Po Liu <[email protected]> | 2022-02-09 20:33:01 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-02-09 13:23:25 +0000 |
commit | b3a723dbc94a6e38f67669d03b521edd766ad895 (patch) | |
tree | 30a733f633af5fad85384629bd0bc07987f5733e /lib/mpi/mpi-add.c | |
parent | 62b5b162e472cb67a5446068858c073c4f661dd1 (diff) |
net:enetc: allocate CBD ring data memory using DMA coherent methods
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 <[email protected]>
Reported-by: Tim Gardner <[email protected]>
Signed-off-by: Po Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions