OSDN Git Service

Merge branch 'hns3-Some-cleanup-and-bugfix-for-desc-filling'
authorDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 17:09:59 +0000 (10:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 17:09:59 +0000 (10:09 -0700)
commit29ce85f349c2f77a3c035f70fafeaa8b22608328
tree0daebb53cf98740b417c343b8490f2d75a231d36
parenteb385146f90da429a94fb448905a32d7235e6fbf
parentbcdb12b70c5266a78430a248e57c8c122839b951
Merge branch 'hns3-Some-cleanup-and-bugfix-for-desc-filling'

Yunsheng Lin says:

====================
Some cleanup and bugfix for desc filling

When retransmiting packets, skb_cow_head which is called in
hns3_set_tso may clone a new header. And driver will clear the
checksum of the header after doing DMA map, so HW will read the
old header whose L3 checksum is not cleared and calculate a
wrong L3 checksum.

Also 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.

This patchset does some cleanup before fixing the above problem.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>