bianbu-linux-6.6/drivers/net/ethernet/hisilicon/hns3
Fuyun Liang bcdb12b70c 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: 76ad4f0ee7 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-16 10:09:59 -07:00
..
hns3pf net: hns3: Enable promisc mode when mac vlan table is full 2018-10-12 11:23:45 -07:00
hns3vf net: hns3: Add RSS tuples support for VF 2018-10-10 22:59:08 -07:00
hclge_mbx.h net: hns3: Drop depricated mta table support 2018-10-05 12:01:55 -07:00
hnae3.c net: hns3: Fix client initialize state issue when roce client initialize failed 2018-09-19 21:20:22 -07:00
hnae3.h net: hns3: Enable promisc mode when mac vlan table is full 2018-10-12 11:23:45 -07:00
hns3_dcbnl.c net: hns3: Add SPDX tags to HNS3 PF driver 2018-07-21 08:44:23 -07:00
hns3_enet.c net: hns3: fix for multiple unmapping DMA problem 2018-10-16 10:09:59 -07:00
hns3_enet.h net: hns3: move DMA map into hns3_fill_desc 2018-10-16 10:09:59 -07:00
hns3_ethtool.c net: hns3: Resume promisc mode and vlan filter status after loopback test 2018-10-12 11:23:45 -07:00
Makefile net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00