diff options
author | Fuyun Liang <[email protected]> | 2018-10-16 19:58:52 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-10-16 10:09:59 -0700 |
commit | bcdb12b70c5266a78430a248e57c8c122839b951 (patch) | |
tree | 0daebb53cf98740b417c343b8490f2d75a231d36 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | ba3f808f5cc15882e5aa565d253522e179148c64 (diff) |
net: hns3: fix for multiple unmapping DMA problem
When sending a big fragment using multiple buffer descriptor,
hns3 does one maping, but do multiple unmapping when tx is done,
which may cause unmapping problem.
To fix it, this patch makes sure the value of desc_cb.length of
the non-first bd is zero. If desc_cb.length is zero, we do not
unmap the buffer.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Fuyun Liang <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Yunsheng Lin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions