diff options
| author | Xiaofei Tan <[email protected]> | 2017-06-29 21:02:14 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-07-01 17:06:56 -0400 |
| commit | f557e32c0023ea0d67cdaa81b3398550dc1e4876 (patch) | |
| tree | c1bdb3d972b6275cd1fbd6ba1dce1334ebd0171e /net/switchdev/switchdev.c | |
| parent | e4a80c31f2e863295cb2351f23ae486b0513a705 (diff) | |
scsi: hisi_sas: optimise DMA slot memory
Currently we allocate 3 sets of DMA memories from separate pools for
each slot. This is inefficient in terms of memory usage
(buffers are less than 1 page in size, so we lose due to alignment),
and also time spent in doing 3 allocations + de-allocations per slot,
instead of 1.
To optimise, combine the 3 DMA buffers into a single buffer from a
single pool.
Signed-off-by: Xiaofei Tan <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions